473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Mozilla Bug? Block element gets collapsed when positioned off-screen

I have a page with a wide table on it that scrolls left to right. The
header of each column has a contextual menu on it that grabs an
absolutely positined hidden div containing several links and places it
next to the header when you click on the contextual menu link. This
works great except for the columns that are initially off-screen to the
right. When you scroll over to these and click on the contextual menu
trigger in Mozilla/Firefox the containing div will not adjust it's
width to contain the links. It will work with a fixed width applied to
it, but since each menu has different content (and therefore different
width) I want it to have an auto width.

I've tried everything I can think of to get the container div to widen
to the appropriate width, but it just won't budge. The style is very
simple:

.contextdiv{
position:absolute;
border:2px solid #000000!important;
width:auto;
}

and the javascript to position it, just checks the location of the
trigger image and places the div next to it.

Any help would be greatly appreciated.

Jul 21 '05 #1
2 1608
sc************@webct.com wrote:
I have a page with a wide table on it that scrolls left to right. The
header of each column has a contextual menu on it that grabs an
absolutely positined hidden div containing several links and places it next to the header when you click on the contextual menu link. This
works great except for the columns that are initially off-screen to the right. When you scroll over to these and click on the contextual menu
trigger in Mozilla/Firefox the containing div will not adjust it's
width to contain the links.


Hi Scott,

This is a known bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=201897

This bug has been marked "fixed" and if you try Mozilla 1.8b you'll
find that it is slightly better, but not yet correct. The remaining
issue is filed as another bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=275179

Vote for this bug!

As far as I recall this problem is unique to Mozilla with all the other
significant browsers getting it right, so most of your visitors will be
seeing your page as you expected.

--Phil.

Jul 21 '05 #2
>> off-screen to the right
Mozilla/Firefox
not adjust its width to contain the links.
https://bugzilla.mozilla.org/show_bug.cgi?id=201897
This bug has been marked "fixed" and if you try Mozilla 1.8b you'll
find that it is slightly better, but not yet correct.


I should add that you can make it look almost correct in 1.8b if you
set white-space:pre on the content of the menus.

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script...
12
by: Bart | last post by:
Hi there, I've got a strange problem. Used to use IE. Now switched to Mozilla (1.4). This works fine in IE but produces nothing (not even an errormessage) in Mozilla:
5
by: Mikko Rantalainen | last post by:
See example at <URL:http://www.cc.jyu.fi/~mira/moz/formtest.php>. The problem is that the label of submit button is always centered on the button regardsless of 'text-align' property in CSS....
11
by: Randy Webb | last post by:
I know that I could use 64 div tags and position them all and get the same effect. Or, some combination, to get the same look. But my question is, why does this page: <URL:...
8
by: Nicolás Lichtmaier | last post by:
Hi, some time ago I've written an article about this issue. It explain some differences in Explorer's and Mozilla's JavaScript/DOM. It has recently changed its URL, This is the new one: ...
5
by: BACON | last post by:
I'm just starting the process of reorganising my modest little website and cleaning up all the HTML, and the logical place to begin was with the homepage. I made a simple little ASP.NET control...
26
by: Bill Norton | last post by:
If you wrap one division around another like this: <div id="wrapper"> <div id="child">...</div> </div> ....the wrapper division will be considered the containing block of the child division...
20
by: Prasad | last post by:
hi all, how to wordwrap the text in a division in mozilla .. In ie, i am using the style word-wrap:break-word it did nt work for mozilla.. any help??? thanx in advance ,
4
by: Yohan N. Leder | last post by:
Hello all, I have a problem with an horizontal menu which is managed using HTML/CSS combination. All sounds right in most of the major Windows's browsers (not tried until now under Linux,...
14
by: Mark Shroyer | last post by:
I just noticed an unintuitive aspect of how nested blocks are positioned under a specific set of conditions, and although this is ostensibly correct behavior (unless Firefox, Safari, and Opera are...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.