Over to dom0. are we including the scrollbars in innerWidth/innerHeight?
dom0 for real. :)
Assignee: rogerl → jst
QA Contact: pschwartau → amar
Confirming bug with Mozilla trunk binary 20011030xx on WinNT. In IE4, the little orange bar is away from both the bottom and the right scrollbar. Not by much, but it is obvious to the eye that there is a cushion of space around it. In Mozilla, however, the little orange bar is right up against both scrollbars, with no space in between...
Status: UNCONFIRMED → NEW
Ever confirmed: true
dup of bug 48634?
Hmm I wouldn't agree. 48634 is about content alignment in browser window, but I guess it has nothing to do with this? At least I don't think so :-)
The function being used in this case uses body.clientWidth as well as window.innerWidth. I bet both are off by the scrollbar width... The way to go about subtracting off the scrollbar width is nsIScrollableFrame. For clientWidth, we already get the scrollable view from an nsIScrollableFrame so this is either a bug in view (gives us wrong clip size) or the page is not using clientWidth as I think it is... Fabian, some testcases of innerWidth and clientWidth with and without scrollbars would be great. :)
The little orange bar doesn't show up at all in mozilla right now. My guess is that this is due to the site not doing the right thing for mozilla, but I could of course be wrong. Not a mozilla1.0 stopper, let me know if you disagree. Any more input on this would be greatly appreciated.
Target Milestone: --- → mozilla1.1
Seems this bug is still alive:( Check this simpe html: http://dev.gear.hu/files/samples/window.open.scrollbars.html Can not define: scrollbars=no, if an image is in popup which is larger then the popup width,height, and image has no specified with,height attribute. I made 3 testcase, please check them out. 1)if an image tag is written in popup, but no width,height attribute specfied, and scollbars=no was set. (scrollbars appears, however scrollbars are disabled from window.open) 2)the same case, but there is a with attribute for image. In that case scrollbars wont be there. Behaviour ok. 3)A table which is bigger then the popup. There is no scrollbars, so it works fine. Tested: mozilla 1.2b (2002101612), and Netscape 7 (20020823)
Hm, checkin once, with a ruler:) seems, mozilla sets the width and height at a popup for outterwidth and height, not inner. Under Win2k (default style) width + 10, height + 30 need to be set. However this bug (once scrollbars ar there one not) is something else, not just the bad size check.
Mmkay. Maybe small update is needed on this. This bug occured with site http://www.helsinginsanomat.fi, but they have removed the orange bar I mentioned. They updated it and it's now on http://www.oikotie.fi/. I contacted them, and they made the gap bigger so it won't go under Mozilla's scrollbars (how kindly!). As I can see, the original problem still exists.
This is most definitely a dup; see comment 6 *** This bug has been marked as a duplicate of 48634 ***
Status: NEW → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.