Forum - jschmidt-systemberatung.de

× jmootips tooltips package for Joomla

Leerzeichen vor Text

  • chris
  • Topic Author
  • Visitor
  • Visitor
9 years 8 months ago - 9 years 8 months ago #934 by chris
Leerzeichen vor Text was created by chris
Hallo,

beim Erstellen eines Tooltips für einen Text in Klammern wird ein zusätzliches Leerzeichen eingefügt:

(Test) -> ( Test)

code: ({tip text="Tip"}Test{/tip})

viele Grüße und vielen Dank für das wunderbare Plugin!
(jmootips_package-v1.2.0)
Last edit: 9 years 8 months ago by jochen.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #935 by jochen
Replied by jochen on topic Leerzeichen vor Text
hi,

vielen Dank für die Info.

Grund für dieses Problem ist, dass die Browser bei einem newline char ("\n") vor "<span " ein Blank einfügen. Ich habe meinen Code geändert, sodass nun vor "<span " kein newline char mehr eingefügt wird. Mit dem nächsten Build ist dieses Änderung verfügbar.
The following user(s) said Thank You: chris

Please Log in or Create an account to join the conversation.

  • chris
  • Topic Author
  • Visitor
  • Visitor
9 years 8 months ago #936 by chris
Replied by chris on topic Leerzeichen vor Text
Super, vielen Dank für die ausführliche und schnelle Antwort,

mir ist gerade noch aufgefallen, daß der Tooltip nicht ganz ins Browserfenster passt (wird abgeschnitten: left: -54px), wenn er so viel Text enthält, daß er die maximale Breite (max-width: 500px) erreicht und das Wort, das ihn erzeugt, nahe am Rand steht.

Hm, da bräuchte man sowas wie min-left:25px (nur zur Veranschaulichung, das gibt's ja leider nicht) und beim Pfeil müsste dann entsprechend viel abgezogen werden (z.B. left:45%-54px-25px) oder gibt es da elegantere Wege? Und das gleich Spiel für rechts...
Leider weiß ich nicht, wie man sowas macht...

Was man auch noch machen könnte, wäre so ein kleiner fadeout, damit man 'n Tick mehr Zeit hat, auf einen Link zu gehen,

viele Grüße, Chris

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #937 by jochen
Replied by jochen on topic Leerzeichen vor Text
hi,

eine elegante (automatische Lösung) habe ich nicht - aber für diese Fälle kann man den Tooltip rechts bzw. links (position="right" bzw. position="left") relativ zum Ziel platzieren.

Please Log in or Create an account to join the conversation.

Time to create page: 0.197 seconds
Powered by Kunena Forum
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.