Closed
Bug 855998
Opened 12 years ago
Closed 11 years ago
Use Aero styling for hover and selected items in UI
Categories
(Toolkit :: Themes, enhancement)
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: u428464, Assigned: Paenglab)
References
Details
Attachments
(3 files, 9 obsolete files)
17.97 KB,
image/png
|
Details | |
14.99 KB,
patch
|
Paenglab
:
review+
Paenglab
:
ui-review+
|
Details | Diff | Splinter Review |
98.75 KB,
image/png
|
Details |
On Windows Vista and up the old styling for "list items" (library, sidebars) is still used, new one should be applied as seen for example on these mockups : http://people.mozilla.com/~shorlander/files/australis-design-specs/images/Australis-i01-DesignSpec-MainWindow-%28Sidebar-Expanded-Hover%29.jpg
http://people.mozilla.com/~shorlander/files/australis-design-specs/images/Australis-i01-DesignSpec-MainWindow-%28LibraryTab%29.jpg
Assignee | ||
Comment 1•12 years ago
|
||
This patch implements the treechildrens and listitems like they are already in TB with an addition from Optimizer to remove (or make it less visible) the double border, when multiple treechildren are selected. Where are also special rules to flatten the appearance under Windows 8.
I've also changed the sidebarheader appearance like in the mockup.
Assignee: nobody → richard.marti
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #731453 -
Flags: ui-review?(shorlander)
Attachment #731453 -
Flags: review?(fyan)
Comment 2•12 years ago
|
||
Comment on attachment 731453 [details] [diff] [review]
proposed fix
>+ background-image: linear-gradient(transparent, transparent);
What's the point of this?
>+/* Apply only on Windows 8 */
>+@media (-moz-windows-compositor) {
>+ @media not all and (-moz-windows-glass) {
This is a pretty ugly hack... And not quite correct, I think. Seems like you should also add -moz-windows-default-theme to the mix.
Updated•12 years ago
|
Component: Theme → Themes
Product: Firefox → Toolkit
Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #2)
> Comment on attachment 731453 [details] [diff] [review]
> proposed fix
>
> >+ background-image: linear-gradient(transparent, transparent);
>
> What's the point of this?
This is a remnant from TB to overwrite the ...(odd) background-image. I'll remove it in the next patch.
> >+/* Apply only on Windows 8 */
> >+@media (-moz-windows-compositor) {
> >+ @media not all and (-moz-windows-glass) {
>
> This is a pretty ugly hack... And not quite correct, I think. Seems like you
> should also add -moz-windows-default-theme to the mix.
Maybe a hack, but the only solution I know to apply only on Windows 8 in a CSS file. This works because -moz-windows-compositor applies on Vista/Win 7 and also on Windows 8 with the non-existent transparency and -moz-windows-glass applies only on Vista/Win7. Instead of -moz-windows-compositor I could use -moz-windows-default-theme.
(In reply to Richard Marti [:Paenglab] from comment #1)
> Created attachment 731453 [details] [diff] [review]
> proposed fix
>
> This patch implements the treechildrens and listitems like they are already
> in TB with an addition from Optimizer to remove (or make it less visible)
> the double border, when multiple treechildren are selected. Where are also
> special rules to flatten the appearance under Windows 8.
>
> I've also changed the sidebarheader appearance like in the mockup.
Nice ! Note that the mockup show a slightly lighter color that the TB current one for selected item.
Do you also change the search box in sidebars ?
Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Richard Marti [:Paenglab] from comment #3)
> Instead of -moz-windows-compositor I could use -moz-windows-default-theme.
Ah no, -moz-windows-compositor is needed. With -moz-windows-default-theme the rules are also applying on Win7 Basic.
(In reply to Guillaume C. [:ge3k0s] from comment #4)
> Nice ! Note that the mockup show a slightly lighter color that the TB
> current one for selected item.
The colors are the same as in Windows 7 Explorer.
> Do you also change the search box in sidebars ?
No, this should be done in a other bug. Actually also the sidebarheader change shouldn't be in this bug.
(In reply to Richard Marti [:Paenglab] from comment #5)
> (In reply to Guillaume C. [:ge3k0s] from comment #4)
> > Nice ! Note that the mockup show a slightly lighter color that the TB
> > current one for selected item.
>
> The colors are the same as in Windows 7 Explorer.
You're right my eyes should have deceived me.
> > Do you also change the search box in sidebars ?
>
> No, this should be done in a other bug. Actually also the sidebarheader change > shouldn't be in this bug.
Filed bug 856307 to track this.
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Comment on attachment 731453 [details] [diff] [review]
proposed fix
Review of attachment 731453 [details] [diff] [review]:
-----------------------------------------------------------------
I don't think I can provide very meaningful UI feedback on this one, as this mostly applies to Vista & 7, and I only have Windows 8 installations, both with HiDPI displays.
On Windows 8, the tree/list items don't quite look native, but they don't look bad either.
Technically:
There are a lot of repeated color values. Since CSS still doesn't have mixins and variables, perhaps we should make those %defines (like we do for many values in browser.css & browser-aero.css) for our preprocessor to handle to keep them in sync.
I think Dão would provide much better reviews for this bug.
Please address his feedback and flag him for the next iteration.
Attachment #731453 -
Flags: review?(fyan)
Comment 9•12 years ago
|
||
(In reply to Richard Marti [:Paenglab] from comment #3)
> (In reply to Dão Gottwald [:dao] from comment #2)
> > >+/* Apply only on Windows 8 */
> > >+@media (-moz-windows-compositor) {
> > >+ @media not all and (-moz-windows-glass) {
> >
> > This is a pretty ugly hack... And not quite correct, I think. Seems like you
> > should also add -moz-windows-default-theme to the mix.
>
> Maybe a hack, but the only solution I know to apply only on Windows 8 in a
> CSS file. This works because -moz-windows-compositor applies on Vista/Win 7
> and also on Windows 8 with the non-existent transparency and
> -moz-windows-glass applies only on Vista/Win7. Instead of
> -moz-windows-compositor I could use -moz-windows-default-theme.
MattN might be of help here.
Flags: needinfo?(mnoorenberghe+bmo)
Reporter | ||
Comment 10•12 years ago
|
||
Does this bug also cover the fact to add a proper hover effect to items ?
Assignee | ||
Comment 11•12 years ago
|
||
(In reply to Guillaume C. [:ge3k0s] from comment #10)
> Does this bug also cover the fact to add a proper hover effect to items ?
Yes
Assignee | ||
Comment 12•12 years ago
|
||
(In reply to Frank Yan (:fryn) from comment #8)
> Comment on attachment 731453 [details] [diff] [review]
> proposed fix
>
> Review of attachment 731453 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> On Windows 8, the tree/list items don't quite look native, but they don't
> look bad either.
This is fixed in this patch.
> Technically:
> There are a lot of repeated color values. Since CSS still doesn't have
> mixins and variables, perhaps we should make those %defines (like we do for
> many values in browser.css & browser-aero.css) for our preprocessor to
> handle to keep them in sync.
I tried this but it doesn't replace the defines. This patch is with the colors on place. I'll add the patch with the placeholders in next attachment, so someone can check what is missing to work correctly.
Attachment #731453 -
Attachment is obsolete: true
Attachment #731453 -
Flags: ui-review?(shorlander)
Attachment #731960 -
Flags: ui-review?(shorlander)
Attachment #731960 -
Flags: review?(dao)
Assignee | ||
Comment 13•12 years ago
|
||
Please can someone check what is missing or wrong? After compiling the placeholders are still in code.
Comment 14•12 years ago
|
||
Comment on attachment 731962 [details] [diff] [review]
patch v2 with color placeholders
Review of attachment 731962 [details] [diff] [review]:
-----------------------------------------------------------------
You need to update
/toolkit/themes/windows/global/jar.mn
for listbox-aero.css and prepend the listbox-aero line with an asterisk like we do for tree-aero.css, etc.
Assignee | ||
Comment 15•12 years ago
|
||
(In reply to Frank Yan (:fryn) from comment #14)
> Comment on attachment 731962 [details] [diff] [review]
> patch v2 with color placeholders
>
> Review of attachment 731962 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> You need to update
> /toolkit/themes/windows/global/jar.mn
> for listbox-aero.css and prepend the listbox-aero line with an asterisk like
> we do for tree-aero.css, etc.
This is already done as it is using %include listbox.css. listbox.css is correctly included but the @...@ placeholders aren't exchanged by the values defined with %define. The same happens on tree-aero.css.
Comment 16•12 years ago
|
||
Comment on attachment 731962 [details] [diff] [review]
patch v2 with color placeholders
Review of attachment 731962 [details] [diff] [review]:
-----------------------------------------------------------------
Include the line:
%filter substitution
before the first %define.
https://developer.mozilla.org/en-US/docs/Build/Text_Preprocessor
Assignee | ||
Comment 17•12 years ago
|
||
(In reply to Frank Yan (:fryn) from comment #16)
> Comment on attachment 731962 [details] [diff] [review]
> patch v2 with color placeholders
>
> Review of attachment 731962 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Include the line:
> %filter substitution
> before the first %define.
> https://developer.mozilla.org/en-US/docs/Build/Text_Preprocessor
Ah, yes this is the solution, thank you. This patch is working now. I'll let the other in the review. If the review ends with placeholders are needed, please check this patch if this would be okay like it is.
Attachment #731962 -
Attachment is obsolete: true
Updated•12 years ago
|
Flags: needinfo?(mnoorenberghe+bmo)
Reporter | ||
Comment 18•12 years ago
|
||
Review is needed here.
Reporter | ||
Comment 19•12 years ago
|
||
Still waiting on UI review and normal review.
Comment 20•12 years ago
|
||
Comment on attachment 731960 [details] [diff] [review]
proposed fix v2
Review of attachment 731960 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great thank you! Just noticed two things:
- Could we make the item height 21px instead of 20px to match Explorer and it would center the arrow?
- Is it possible to overlap the selected state by 1px in the list view? This would avoid the double border look when selecting more than one item.
Attachment #731960 -
Flags: ui-review?(shorlander) → ui-review+
Assignee | ||
Comment 21•12 years ago
|
||
(In reply to Stephen Horlander from comment #20)
> Comment on attachment 731960 [details] [diff] [review]
> proposed fix v2
>
> Review of attachment 731960 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Looks great thank you! Just noticed two things:
>
> - Could we make the item height 21px instead of 20px to match Explorer and
> it would center the arrow?
I tried to increase the min-height from 1.7em to 1.75em but it increased for 2px. Also with 1.705em it increased this 2px. I see no solution to make it 1px taller. Unfortunately calc doesn't work in the treechildren. Do somebody know a solution?
> - Is it possible to overlap the selected state by 1px in the list view? This
> would avoid the double border look when selecting more than one item.
The only solution I know is margin-top: -1px or margin-bottom: -1px but this cuts the border.
I leave the patch as it is for the r?. If someone has a solution, I'll implement it in a new patch.
Dão, if you more like the patch with placeholders, you can review this one. The rules are the same as the other patch.
Comment 22•12 years ago
|
||
This doesn't really block Australis, it's just a theme refinement. (Still wanted, but I'd ship without it.)
No longer blocks: australis
Reporter | ||
Comment 23•12 years ago
|
||
BTW is there a specific reason that prevent review here ?
Assignee | ||
Comment 24•11 years ago
|
||
Dão, this patch is awaiting review for more than two month. Please can you have a look on it?
Reporter | ||
Comment 25•11 years ago
|
||
If Dao has too many other patchs to review maybe someone else could look at this.
Comment 26•11 years ago
|
||
Comment on attachment 731960 [details] [diff] [review]
proposed fix v2
Review of attachment 731960 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good, but let's rebase on top of the patches in bug 810399 so that we don't need the media query hackz.
Apologies for the slow review turn-around-time.
::: toolkit/themes/windows/global/listbox-aero.css
@@ +11,5 @@
> + -moz-margin-start: 1px;
> + -moz-margin-end: 1px;
> + border-width: 2px;
> + border-radius: 3px;
> + background-image: linear-gradient(transparent, transparent);
Can you add a comment about this?
@@ +52,5 @@
> +}
> +
> +/* Apply only on Windows 8 */
> +@media (-moz-windows-compositor) {
> + @media not all and (-moz-windows-glass) {
Please rebase this off of the patches in bug 810399.
Attachment #731960 -
Flags: review?(dao) → feedback+
Assignee | ||
Comment 27•11 years ago
|
||
Patch rebased on top of the patches in bug 810399.
(In reply to Jared Wein [:jaws] from comment #26)
> Comment on attachment 731960 [details] [diff] [review]
> proposed fix v2
>
> Review of attachment 731960 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: toolkit/themes/windows/global/listbox-aero.css
> @@ +11,5 @@
> > + -moz-margin-start: 1px;
> > + -moz-margin-end: 1px;
> > + border-width: 2px;
> > + border-radius: 3px;
> > + background-image: linear-gradient(transparent, transparent);
>
> Can you add a comment about this?
It's not needed here. I removed it.
> @@ +52,5 @@
> > +}
> > +
> > +/* Apply only on Windows 8 */
> > +@media (-moz-windows-compositor) {
> > + @media not all and (-moz-windows-glass) {
>
> Please rebase this off of the patches in bug 810399.
Changed to: @media (-moz-windows-version: win8)
Attachment #731960 -
Attachment is obsolete: true
Attachment #732064 -
Attachment is obsolete: true
Attachment #767390 -
Flags: ui-review+
Attachment #767390 -
Flags: review?(jaws)
Comment 28•11 years ago
|
||
Comment on attachment 767390 [details] [diff] [review]
patch v3
Review of attachment 767390 [details] [diff] [review]:
-----------------------------------------------------------------
Cool, thanks! We'll just need to wait for the dependent bug to be fixed first.
::: toolkit/themes/windows/global/listbox-aero.css
@@ +59,5 @@
> + outline: none;
> + }
> +}
> +
> +/* Apply only on Windows 8 */
This comment is now redundant.
::: toolkit/themes/windows/global/tree-aero.css
@@ +163,5 @@
> + color: -moz-DialogText;
> + }
> +}
> +
> +/* Apply only on Windows 8 */
ditto
Attachment #767390 -
Flags: review?(jaws) → review+
Comment 29•11 years ago
|
||
Comment on attachment 767390 [details] [diff] [review]
patch v3
>+ -moz-border-top-colors: @selectedBorderColor@ @whiteOpacityBorderColor@;
>+ -moz-border-right-colors: @selectedBorderColor@ @whiteOpacityBorderColor@;
>+ -moz-border-left-colors: @selectedBorderColor@ @whiteOpacityBorderColor@;
>+ -moz-border-bottom-colors: @selectedBorderColor@ @whiteOpacityBottomBorderColor@;
Can you make this a single border and an inset box-shadow (or two for the brighter bottom highlight)? This should simplify things.
>+/* Apply only on Windows 8 */
>+@media (-moz-windows-version: win8) {
You need to move this into the -moz-windows-default-theme block, as win8 doesn't imply that the default theme is being used.
Attachment #767390 -
Flags: review-
Assignee | ||
Comment 30•11 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #28)
> Comment on attachment 767390 [details] [diff] [review]
> patch v3
>
> Review of attachment 767390 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Cool, thanks! We'll just need to wait for the dependent bug to be fixed
> first.
>
> ::: toolkit/themes/windows/global/listbox-aero.css
> @@ +59,5 @@
> > + outline: none;
> > + }
> > +}
> > +
> > +/* Apply only on Windows 8 */
>
> This comment is now redundant.
Both comments removed.
(In reply to Dão Gottwald [:dao] from comment #29)
> Comment on attachment 767390 [details] [diff] [review]
> patch v3
>
> >+ -moz-border-top-colors: @selectedBorderColor@ @whiteOpacityBorderColor@;
> >+ -moz-border-right-colors: @selectedBorderColor@ @whiteOpacityBorderColor@;
> >+ -moz-border-left-colors: @selectedBorderColor@ @whiteOpacityBorderColor@;
> >+ -moz-border-bottom-colors: @selectedBorderColor@ @whiteOpacityBottomBorderColor@;
>
> Can you make this a single border and an inset box-shadow (or two for the
> brighter bottom highlight)? This should simplify things.
On tree this didn't work. In listboxes I've done it.
> >+/* Apply only on Windows 8 */
> >+@media (-moz-windows-version: win8) {
>
> You need to move this into the -moz-windows-default-theme block, as win8
> doesn't imply that the default theme is being used.
Done.
Attachment #767390 -
Attachment is obsolete: true
Attachment #768241 -
Flags: ui-review+
Attachment #768241 -
Flags: review?(jaws)
Attachment #768241 -
Flags: review?(dao)
Comment 31•11 years ago
|
||
Comment on attachment 768241 [details] [diff] [review]
patch v4
> > Can you make this a single border and an inset box-shadow (or two for the
> > brighter bottom highlight)? This should simplify things.
>
> On tree this didn't work.
Too bad. Can you file a bug on this? Probably belongs in Core::Layout.
>+ #sidebar-header {
>+ -moz-appearance: none;
>+ background-color: #EEF3FA;
>+ border-bottom: none;
>+ }
Add text-shadow: none; color: black; here. Otherwise this looks miserable with lightweight themes.
Attachment #768241 -
Flags: review?(dao) → review+
Assignee | ||
Comment 32•11 years ago
|
||
Patch addressing Dão's comment.
Attachment #768241 -
Attachment is obsolete: true
Attachment #768241 -
Flags: review?(jaws)
Attachment #768278 -
Flags: ui-review+
Attachment #768278 -
Flags: review+
Comment 33•11 years ago
|
||
I guess this could actually land without bug 810399. The media query should fail gracefully and Windows 8 would use the Windows 7 / Vista style until bug 810399 lands.
Assignee | ||
Comment 34•11 years ago
|
||
Okay, then I set checkin-needed after comment 33.
Keywords: checkin-needed
Comment 35•11 years ago
|
||
Keywords: checkin-needed
Comment 36•11 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #33)
> I guess this could actually land without bug 810399. The media query should
> fail gracefully and Windows 8 would use the Windows 7 / Vista style until
> bug 810399 lands.
I think MattN mentioned that the syntax for win8 detection was going to change, so the media query will need to be updated.
Comment 37•11 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #36)
> (In reply to Dão Gottwald [:dao] from comment #33)
> > I guess this could actually land without bug 810399. The media query should
> > fail gracefully and Windows 8 would use the Windows 7 / Vista style until
> > bug 810399 lands.
>
> I think MattN mentioned that the syntax for win8 detection was going to
> change, so the media query will need to be updated.
-moz-windows-version: win8 -> -moz-os-version: windows-win8
Comment 38•11 years ago
|
||
Backed out for Win7/Win8 mochitest-other failures.
https://hg.mozilla.org/integration/mozilla-inbound/rev/a36049f73557
https://tbpl.mozilla.org/php/getParsedLog.php?id=24787612&tree=Mozilla-Inbound
Assignee | ||
Comment 39•11 years ago
|
||
Hmm, when I remove the "min-height: 1.7em" then the mochitests are passing. I'll try later if it works with 20px. But this would be suboptimal for taller font-size. I can also try to play with padding.
Or does somebody have an other soultion?
Assignee | ||
Comment 40•11 years ago
|
||
This patch runs all tests except one, see: https://tbpl.mozilla.org/php/getParsedLog.php?id=24839615&tree=Try
I don't know what I could do to solve this. Jared, do you know a solution? Or do you know who could help?
I changed in listbox-aero.css on listitem this:
- removed the min-height: 1.7em
- added padding-top and -bottom: 1px to have the correct height like on Explorer.
On tree-aero.css I changed on treechildren::-moz-tree-row the min-height: 1.7em to height: 1.8em.
On a previous try run I only removed both min-height and it passed all tests (https://tbpl.mozilla.org/?tree=Try&rev=5c65a9bf22e7)
Attachment #770310 -
Flags: feedback?(jaws)
Comment 41•11 years ago
|
||
Comment on attachment 770310 [details] [diff] [review]
proposed fix
I looked at the test and I'm not sure why it is failing. I went through the steps of the test manually and couldn't see any issue, but running the test locally did show the same failure.
Marco, as you wrote the test, do you have any idea why this is causing it to fail?
Attachment #770310 -
Flags: feedback?(jaws)
Updated•11 years ago
|
Flags: needinfo?(mak77)
Assignee | ||
Comment 42•11 years ago
|
||
It only doesn't fail when no padding is added to the listitem. I tried also to add the padding to the listcell instead of the listitem but it is still failing.
Comment 43•11 years ago
|
||
So is it showing a bug with the ensureElementIsVisible?
Comment 44•11 years ago
|
||
Sorry but I'm not the right person, I didn't write the test, maybe my name appears just as an old inbound sheriff. You may want dbaron or masayuki if debugging it without deep layout knowledge is hard.
Flags: needinfo?(mak77)
Assignee | ||
Comment 45•11 years ago
|
||
Hi David and Masayuki, maybe you can help in this?
When I'm applying padding-top: 1px and padding-bottom: 1px at listitem, then one test is failing: 122 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/browser/components/places/tests/chrome/test_bug631374_tags_selector_scroll.xul | Scroll position is correct - got 1, expected 0
Without the paddings the test passes. It also fails when applying a min-height: 1.7em. We need the same height to match the listitems (or tree items) in Explorer.
Jared is thinking in comment 43 it could be a bug in ensureElementIsVisible.
Thanks
Flags: needinfo?(masayuki)
Flags: needinfo?(dbaron)
Assignee | ||
Comment 46•11 years ago
|
||
Please can somebody help solving this test failure?
Keywords: helpwanted
I can't tell easily what the bug is and I don't have time right now to debug it myself.
Try adding an alert() to the test when the test fails, so you can take a screenshot of the current test state when it fails. That should help you narrow down why the test failed.
Flags: needinfo?(roc)
(In reply to Marco Bonardo [:mak] from comment #44)
> Sorry but I'm not the right person, I didn't write the test, maybe my name
> appears just as an old inbound sheriff. You may want dbaron or masayuki if
> debugging it without deep layout knowledge is hard.
No, you did write the test; see bug 631374 comment 11.
Flags: needinfo?(dbaron) → needinfo?(mak77)
Comment 50•11 years ago
|
||
(In reply to David Baron [:dbaron] (don't cc:, use needinfo? instead) from comment #49)
> (In reply to Marco Bonardo [:mak] from comment #44)
> > Sorry but I'm not the right person, I didn't write the test, maybe my name
> > appears just as an old inbound sheriff. You may want dbaron or masayuki if
> > debugging it without deep layout knowledge is hard.
>
> No, you did write the test; see bug 631374 comment 11.
Sorry, but I looked at comment 38 and the failures were in
content/chrome/toolkit/content/tests/chrome/test_hiddenpaging.xul
content/chrome/toolkit/content/tests/chrome/test_mousescroll.xul
so I got confused.
Comment 45 is clearer, I can try to look at it.
Flags: needinfo?(masayuki)
Comment 51•11 years ago
|
||
just as a side note, in the Places code there is no special handling, we just use the methods exposed by the listbox to scroll to a given row:
getIndexOfFirstVisibleRow, getNumberOfVisibleRows, ensureIndexIsVisible
Since we don't play with the boxObject or pixel values, it's very likely the change is confusing the nsListBoxBodyFrame, maybe mRowHeight is not taking padding into account, the row height is set from GetFontMetricsForFrame()->MaxHeight() and I'm not sure what that represents. I will try to do some debugging later.
Dumb idea, maybe you could increase the row height using line-height instead of padding?
Comment 52•11 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #51)
> Dumb idea, maybe you could increase the row height using line-height instead
> of padding?
The line height should be determined by the font, hard-coding it doesn't seem like a great idea.
Assignee | ||
Comment 53•11 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #51)
> Dumb idea, maybe you could increase the row height using line-height instead
> of padding?
I was curious if this could help, but the test is still failing. It still needs the padding. Only with line-height the listitem has not the needed height.
Comment 54•11 years ago
|
||
I first verified if the listbox frame is taking the padding into account, and looks like it is properly considering it, according to my debugging.
I think we can relax a bit the test verification instead, we just care the tag that was previously visible is still visible, it may not be anymore the first visible tag though, there may be rounding and layout calculations that make that differ. We still just care it being visible, not the first one, that's an assumption we can't make safely.
Attachment #775649 -
Flags: review?(jaws)
Attachment #775649 -
Flags: feedback?(richard.marti)
Flags: needinfo?(mak77)
Comment 55•11 years ago
|
||
Comment on attachment 775649 [details] [diff] [review]
relax test checks v1
Review of attachment 775649 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/places/tests/chrome/test_bug631374_tags_selector_scroll.xul
@@ +127,5 @@
> listItem.checked = false;
> +
> + // Ensure the first visible tag is still visible in the list.
> + let firstVisibleIndex = tagsSelector.getIndexOfFirstVisibleRow();
> + let lastVisibleIndex = firstVisibleIndex + tagsSelector.getNumberOfVisibleRows() -1;
nit, space after '-'
@@ +130,5 @@
> + let firstVisibleIndex = tagsSelector.getIndexOfFirstVisibleRow();
> + let lastVisibleIndex = firstVisibleIndex + tagsSelector.getNumberOfVisibleRows() -1;
> + let expectedTagIndex = tags.indexOf(firstVisibleTag);
> + SimpleTest.ok(expectedTagIndex >= firstVisibleIndex &&
> + expectedTagIndex <= lastVisibleIndex,
I'm not sure how this would work, because in my manual testing the firstVisibleTag wouldn't be in the scrolled view, but if doing this loosens the restrictions enough to get the test passing I'm fine with it.
Attachment #775649 -
Flags: review?(jaws) → review+
Comment 56•11 years ago
|
||
which manual testing did you execute? Steps?
Comment 57•11 years ago
|
||
(In reply to Marco Bonardo [:mak] from comment #56)
> which manual testing did you execute? Steps?
I had followed the steps of test_bug631374_tags_selector_scroll.xul.
Assignee | ||
Comment 58•11 years ago
|
||
Comment on attachment 775649 [details] [diff] [review]
relax test checks v1
I made a try build to sure it doesn't fail (I had no doubts but I want to be sure): https://tbpl.mozilla.org/?tree=Try&rev=4790d65616ba
Attachment #775649 -
Flags: feedback?(richard.marti) → feedback+
Assignee | ||
Comment 59•11 years ago
|
||
Is it okay to set checkin-needed or is something missing?
Comment 60•11 years ago
|
||
(In reply to Richard Marti [:Paenglab] from comment #59)
> Is it okay to set checkin-needed or is something missing?
You should add a new patch for checkin which also has the test fix, so it doesn't go orange once you check this in.
Assignee | ||
Comment 61•11 years ago
|
||
Should I also add the patch from bug 888948 to be fixed in one push?
Assignee | ||
Comment 62•11 years ago
|
||
Patch with test fix and fix from bug 888948
Attachment #768278 -
Attachment is obsolete: true
Attachment #770310 -
Attachment is obsolete: true
Attachment #775649 -
Attachment is obsolete: true
Attachment #775818 -
Flags: ui-review+
Attachment #775818 -
Flags: review+
Assignee | ||
Updated•11 years ago
|
Keywords: helpwanted → checkin-needed
Comment 63•11 years ago
|
||
Keywords: checkin-needed
Comment 64•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Updated•11 years ago
|
This patch broke non-places XUL trees pretty badly, see attached screenshot.
Is there a bug that tracks this regression?
Comment on attachment 785538 [details]
screenshot.png
Oh, the ghost-y row lines on the left I circled just because it seems wrong. Probably a separate problem.
The thing I care about is the circled stuff on the right.
(In reply to ben turner [:bent] from comment #65)
> Is there a bug that tracks this regression?
Bug 898955 probably.
You need to log in
before you can comment on or make changes to this bug.
Description
•