From: SourceForge.net <no...@so...> - 2005-08-12 06:33:37
|
Bugs item #1256615, was opened at 2005-08-11 07:20 Message generated for change (Comment added) made by warp9pnt9 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1256615&group_id=5757 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Verified Status: Pending Resolution: None Priority: 5 Submitted By: Alexander (askvortsov) Assigned to: L W (warp9pnt9) Summary: GUI component Explorer renders incorrectly under firefox Initial Comment: Under firefox 1.0.4, dynapi 3.0.0 beta 2: Open dynapi docs -> examples -> GUI components / Explorer. Left sample have text for some nodes on new line (see attached screenshot). ---------------------------------------------------------------------- >Comment By: L W (warp9pnt9) Date: 2005-08-12 02:33 Message: Logged In: YES user_id=706287 Hmm, yes, I know I ignored that the problem might be elsewhere by using a quick fix. ;-) If there are some things going on deeper in the API, then it would affect more than just this, so I'll keep digging. But for now at least this seems to work well enough. But yeah, it does not explain why IE was not having the same problem, so the problem still exists in Mozilla. :-\ Ahh well. ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-12 02:28 Message: Logged In: YES user_id=706287 File: dynapi/src/gui/explorer.style.js Line: 65 Go to the end of the line. Add nowrap. Done. :-) < var ret = '<tr><td><img src="'+iWht.src+'" height="1" width="5"></td><td valign="top">'; > var ret = '<tr><td><img src="'+iWht.src+'" height="1" width="5"></td><td valign="top" nowrap>'; See if that fixes it! Folks, try it, and let us know if it breaks anything. Doug, thanks for the tip, it may very well apply to three other recent bugs. ---------------------------------------------------------------------- Comment By: Alexander (askvortsov) Date: 2005-08-12 02:24 Message: Logged In: YES user_id=1327534 Attached screenshot. I think problem is in explorer.style.js _adjustSize function. After I change it to always use _OldAdjustSize, tree size is correct, and text is not wrapped. Checked this on IE and firefox. ---------------------------------------------------------------------- Comment By: Doug Melvin (doug_melvin) Date: 2005-08-11 22:34 Message: Logged In: YES user_id=184788 i may be just p***ing in the wind, however, I do recall a bug in mozilla/ff itself where the content width is invalid under most conditions.. mayhapse there is contentwidth being used, or the autoresize thingy, in which case I would not expect it to work in ff correctly. Hoever, FF renders CSS better (and mor consitantly) than any other browser I have worked which may explain why it's okay when you set the style class. cheers ---------------------------------------------------------------------- Comment By: L W (warp9pnt9) Date: 2005-08-11 22:21 Message: Logged In: YES user_id=706287 Umm, where's the screenshot? In any case... Ahh yes, I did notice this too in Mozilla 1.0.6 / WinXP. But I hadn't looked in IE6. I just assumed it was an alternative listing style. But I too would expect it to be on one line. In IE, the Explorer apparently expands to accommodate the text. In Mozilla, the text is wrapped and the Explorer shrinks (or vice versa). If I take the HTML for a leave and look at it alone in Mozilla, it seems fine. I have no idea why the explorer won't grow big enough to let the text not wrap. Yet the explorer on the right (mail) seems fine to me. Look at these lines for a clue. File: dynapi/examples/dynapi.gui.explorer.html 19: var exp = new Explorer(70,100); 44: var exp2 = new Explorer(270,100,null,null,'ExplorerBlock'); Change line 19 above to this: 19: var exp = new Explorer(70,100,null,null,'ExplorerBlock'); Change nothing else. Seems to work fine. The Explorer Block Style seems to handle the thing properly. At this point I have no idea how, or which way is correct, or why, or how to fix, etc. :p I'm looking in to quite a few bugs already. If anyone can figure this out please share your solution. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1256615&group_id=5757 |