Hi,
i have a small tooltip problem. A tooltip graphics (54x54) are presented. These are in the new version too big. Can I also get small again.
Please go over the colored boxes.
Test page, here too big :-(
http://www.rainbow-gym.de/html\kursplan\1\kursplan5.41.htm
Original page with version 5.34. Here everything is OK :-)
http://www.rainbow-gym.de/html\kursplan\1\kursplan.htm
best regards
Sorry, translate with google
Small tooltip problem with Floatbox 5.41
Page: 1
Author | Post |
---|---|
#1 Thu Sep 27, 2012 11:10 am
|
|
Member
Registered: May 2009
Posts: 43
|
|
#2 Thu Sep 27, 2012 1:51 pm
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
This is the minContentWidth and minContentHeight settings taking effect. The defaults for those are 140 and 100 px. Perhaps Floatbox should apply these options only to standard floatboxes and not to tooltips. I'll review that.
My recommendation is that you set minContentWidth:50 and minContentHeight:50 either in the 'globalOptions' section or the 'tooltip' section of options.js. |
#3 Thu Sep 27, 2012 7:27 pm
|
|
Member
Registered: May 2009
Posts: 43
|
hi,
worked great, have added the data in the options.js. But I have a little problem detected. In the original page, the color changes when mouseover. In floatbox 5.41 not. Here is the Sript to change color: onmouseover="change_to1(this)" onmouseout="change_back1(this)" function change_to1(element) { element.style.border ='0 solid #000077'; element.style.backgroundColor ='#9C0F1D'; element.style.color ='#FFFFFF'; } function change_back1(element) { element.style.border ='0 solid red'; element.style.backgroundColor =''; element.style.color ='#4E2D42'; } You know why that is and can you give me a hint to the color change again. Under 5.34 it is working correctly |
#4 Thu Sep 27, 2012 8:03 pm
|
|
Member
Registered: May 2009
Posts: 43
|
Also it does not work with CSS. I have both sides of the table - changed in CSS "Mo 10.00 - 11.00 Bodystyling Nancy - yellow, top, left". It only works under Floatbox 5.34, unfortunately not Floatbox 5.41.
Quellcode - line 235: class=”normal” onmouseover="this.className='hover'" onmouseout="this.className='normal'" td.normal { Font-Family:Arial; Font-Size: 8pt; Font-Weight:Lighter; Color:#4E2D42; Line-Height:14px; background: #FFD600; } td.hover { Font-Family:Arial; Font-Size: 8pt; Font-Weight:Lighter; Color:#ffffff; Line-Height:14px; background: #9C0F1D; } Any idea « Last edit by wnwtal on Thu Sep 27, 2012 8:07 pm. » |
#5 Thu Sep 27, 2012 9:40 pm
|
|
Member
Registered: Dec 2010
Posts: 39
Location: Madrid, Spain
|
I think this is what Byron is going to tell you:
|
#6 Fri Sep 28, 2012 1:03 am
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
Well put. I couldn't have said it better myself. Although in general (with one notable current exception) I prefer to refrain from commenting on the correctness or 'legitimacy' of someone's approach to their own web site here on the public forum.
In case it's not clear, the tooltip activation replaces the existing onmouseover handler with it's own. Reality is, people use javascript mouseover handlers to change appearance and Floatbox strives to work as well as it can in the real world and to break as little as possible when being upgraded. I'll review going back to DOM2 events for tooltips in the next release but it's not a certainty that I will revert. Currently, I think moving the styling to the :hover pseudo-class is the quickest and 'correctest' fix. Another approach would be to put the tooltip on a different nested element (parent or child) than the one that hosts the styling onmouseover handler. |
#7 Sat Sep 29, 2012 9:27 am
|
|
Member
Registered: May 2009
Posts: 43
|
hi,
thanks for your help, I'll let the thing go again through the head. wish you have a nice time |
Page: 1