Closed
Bug 278710
Opened 20 years ago
Closed 19 years ago
Using user dropdown instead of text field disturbs the layout
Categories
(Bugzilla :: User Interface, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: goobix, Assigned: glob)
References
Details
(Keywords: regression)
Attachments
(3 files, 8 obsolete files)
The checkin from bug 255428 caused white rows to appear in the upper part of the layout due to the "multiple => 5" thing. The multiple select thing needs to fall down along the screen without forcing white spaces in the left components.
| Reporter | ||
Comment 1•20 years ago
|
||
Adding the CC list from that bug on this one, maybe someone is interested in fixing the regression.
Flags: blocking2.20?
Target Milestone: --- → Bugzilla 2.20
Updated•20 years ago
|
Flags: blocking2.20? → blocking2.20+
ok, this bug was much harder to fix than i expected, due in part to option fields affecting the layout in different ways. i went through many iterations before settling on this fix. i'm not 100% happy with nested tables, but this produces by far the cleanest layout and code. i'm in an ascii diagram mood, so here's where the table nesting happens: +------------------------+--------------+ | +---------+----------+ | +----------+ | | | bug | hardware | | | reporter | | . . . . . . . .
oh, this patch also (accidently) fixes the layout issues you get if you have many flags (just look at this bug).
Comment 5•20 years ago
|
||
Any chance I could get before and after screenshots of the change?
note that in the before shot, the gaps between bug, product, and component are caused by the larger cc field; while the gap between url and summary is caused by the flag list.
Comment 9•20 years ago
|
||
Comment on attachment 183884 [details] [diff] [review] patch v1 The fixes for both the gaps introduced by 255428 and the ones created by significant numbers of flags are both welcome fixes, but this patch additionally moves the plaintext field section (the section with URL, summary, etc.) upwards to the edge of the field sections above them. The plaintext section should remain aligned with the top of the flags section, even if that means leaving a gap between those sections. Note that in the future we're going to convert each section to a floating div such that wide screens display more sections side-by-side while narrow screens display them all vertically without requiring horizontal scrolling.
Attachment #183884 -
Flags: review?(myk) → review-
Comment 10•20 years ago
|
||
(Incidentally, we're also going to reorganize the sections somewhat so that fields are logically grouped.)
| Assignee | ||
Comment 11•20 years ago
|
||
before i hit the code again, is this the layout that you're expecting?
Comment 12•20 years ago
|
||
Yes, that's what I'm looking for.
| Assignee | ||
Comment 13•20 years ago
|
||
while trivial to do in photoshop, i suspect it's impossible to do with tables :( how about i just put an empty row between qa contact and url?
| Assignee | ||
Comment 14•20 years ago
|
||
this version uses tables to achieve the desired layout. however i'm not happy with what i had to do to acheive this. most of the table rows now have a height="1pt" attribute, with the exception of two new rows. thankfully ie and ff expand the rows to the minimum height to view the content, and expand the empty rows to fill the rest of the gap. it looks different in ie, worse than ff but better than the current layout. i'll post a screenshot of how ie lays out the bug with this patch. if possible i'd prefer to go with the previous patch with an empty row between qacontact and url.
Attachment #183884 -
Attachment is obsolete: true
Attachment #183970 -
Attachment is obsolete: true
Attachment #184650 -
Flags: review?(myk)
| Assignee | ||
Comment 15•20 years ago
|
||
Comment 16•20 years ago
|
||
Actually I was thinking more of something like this patch, which breaks each section (i.e. collection of label/field pairs) into its own table, then wraps the sections in a table that lays them out appropriately. Besides fixing the alignment bugs, this approach groups sections together structurally (which will make moving to a flexible section-based layout using divs easier), and it simplifies the code, since instead of one big complicated and intricately arranged (and hard to hack without unwanted side-effects; hence this bug and others) table there are five relatively simple and straightforward two-column tables enclosed inside a five-cell table for layout. In other words, each section (except for flags, which generates its own table), groups its content into a table that looks like this: +-----------------+ | labels | fields | +-----------------+ | ... | ... | +-----------------+ | ... | ... | +-----------------+ | ... | ... | +-----------------+ The sections are then wrapped in a table which organizes them according to the current layout of the page, i.e.: +-----------------------+-------------------------+---------------------+ | | | | | | | | | bug #, | hardware, | reporter, | | product, | OS, | CC | | etc. | etc. | | | | | | | | | | +-----------------------+-------------------------+---------------------+ | | | | | | | QA contact, | Flags | | URL, | | | etc. | | | | | | | | +-------------------------------------------------+---------------------+ Perhaps this is what you were going for in your first patch? If so, that patch was on the right track. It just needs to align the bottom two sections (URL etc. and Flags) with each other. Take a look at this patch and see if you can use it to update your earlier patch with that fix.
| Assignee | ||
Comment 17•20 years ago
|
||
the main problem with that approach is because the "bug, product, .." fields are in a different table than the "qa contact, .." fields, the width of the field label column won't be the same.
| Assignee | ||
Comment 18•20 years ago
|
||
myk - here's what it looks like. in addition to the first column width being inconsistent, the height of the rows are different.
Comment 19•20 years ago
|
||
Is this actually going to make 2.20, do you think?
Component: Bugzilla-General → User Interface
Version: unspecified → 2.19.2
| Assignee | ||
Comment 20•20 years ago
|
||
> Is this actually going to make 2.20, do you think?
yes.
/me looks at myk
Updated•20 years ago
|
Whiteboard: [patch awaiting review]
Comment 21•20 years ago
|
||
I see how the row height varies, but how is the first column width inconsistent? The thing is, although this creates some UI artifacts of its own, it moves us in the direction we're ultimately going, in which each of these five sections will be free floating, such that users with sufficiently wide screens will see them all next to each other, while users with very narrow screens will see them stacked up vertically (and most users will see, as they do today, two rows of two-three sections each).
Attachment #184650 -
Attachment is obsolete: true
Attachment #184650 -
Flags: review?(myk)
| Assignee | ||
Comment 22•20 years ago
|
||
Attachment #184460 -
Attachment is obsolete: true
Attachment #184645 -
Attachment is obsolete: true
Attachment #184651 -
Attachment is obsolete: true
Attachment #185898 -
Attachment is obsolete: true
Attachment #186884 -
Flags: review?(myk)
Comment 23•19 years ago
|
||
I'd admire a patch which made the external table instead a set of divs which flowed nicely depending on how wide or narrow the page was made. This is one of my main gripes with Bugzilla: I can't view it at 700px width, which is my regular browser width, and the only reason for that is the silly reporter,cc (and now, flags) cell which blows us into horizontal scrolling.
Comment 24•19 years ago
|
||
Comment on attachment 186884 [details] [diff] [review] 5 tables patch >I'd admire a patch which made the external table instead a set of divs which >flowed nicely depending on how wide or narrow the page was made. Indeed. That's where we want to be, and this patch doesn't take us there. But it does take us halfway, since it separates sections into distinct blocks, a necessary prerequisite to laying out those sections using divs. r=myk, but this seems fairly significant to be going into 2.20 at this date. Unfortunately, I don't see a simpler enough fix for the problem, including any of the previous patches.
Attachment #186884 -
Flags: review?(myk) → review+
Comment 25•19 years ago
|
||
Comment on attachment 186884 [details] [diff] [review] 5 tables patch err, the xstyle debugging code needs to be removed from this patch
Attachment #186884 -
Flags: review+ → review-
| Assignee | ||
Comment 26•19 years ago
|
||
without xstyle
Attachment #186884 -
Attachment is obsolete: true
Attachment #188620 -
Flags: review?(myk)
Updated•19 years ago
|
Attachment #188620 -
Flags: review?(myk) → review+
Comment 27•19 years ago
|
||
Ehh... I hate doing this stuff this close to release, but let's do it. This will probably make it a little easier to maintain, too, since it gets things in the order you expect in the template.
Flags: approval? → approval+
Comment 28•19 years ago
|
||
Glob: I just did the checkin myself so that I could control the release process. Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.60; previous revision: 1.59 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [patch awaiting review]
Comment 29•19 years ago
|
||
*** Bug 250632 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•