Closed
Bug 838694
Opened 12 years ago
Closed 12 years ago
Move the text showing the file names to the right of the browse button for <input type='file'>
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: mounir, Assigned: mounir)
References
Details
Attachments
(1 file)
5.88 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #710787 -
Flags: review?(bzbarsky)
![]() |
||
Comment 1•12 years ago
|
||
Comment on attachment 710787 [details] [diff] [review]
Patch
Why do we need to completely reorder everything in the function? Seems like just changing the orders of the two AppendElement calls would do just as well...
Attachment #710787 -
Flags: review?(bzbarsky) → review-
Assignee | ||
Comment 2•12 years ago
|
||
Comment on attachment 710787 [details] [diff] [review]
Patch
That is true. I just used that patch to do some cleanup (remove para-phrasing comments, re-order stuff, etc.).
Attachment #710787 -
Flags: review- → review?(bzbarsky)
![]() |
||
Comment 3•12 years ago
|
||
OK. Next time, I'd love the cleanup separate from the substantive changes...
![]() |
||
Comment 4•12 years ago
|
||
Comment on attachment 710787 [details] [diff] [review]
Patch
>+ // Create and setup the file picking button.
This comment should come before we get the button's nodeinfo.
>+ mBrowse->SetNativeAnonymous();
>+ mBrowse->SetAttr(kNameSpaceID_None, nsGkAtoms::type,
>+ NS_LITERAL_STRING("button"), false);
Please don't lose the comment about SetNativeAnonymous needing to come before SetAttr.
>+ // Create and setup the text showing the selected files.
Again, this should come before we get the nodeinfo, imo.
>- // Mark the element to be native anonymous before setting any attributes.
Again, don't lose that comment.
r=me with that.
Attachment #710787 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Flags: in-testsuite+
Assignee | ||
Updated•12 years ago
|
Target Milestone: --- → mozilla22
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 7•12 years ago
|
||
How can I turn this off, please? I do not like the change, I read from left to right, and the important part is the file name, and only then the button to browse for it. Definitely not the opposite. I do not see any good reason for this change, neither any explanation why you wanted to change this here. I consider this a usability regression, together with a fact that the file name entry is invisible now, thus I cannot see where its real estate is, thus clicking in an empty page space can bring a file chooser dialog, which is quite unexpected. Please see screen shots at [1], if you are unsure what I'm talking about. In case the entry invisibility is not caused by the button reorder, please point me to the right bug. Thanks in advance.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=981407
Assignee | ||
Comment 8•12 years ago
|
||
I am sympathetic to this problem and it will hopefully addressed in bug 891924.
You need to log in
before you can comment on or make changes to this bug.
Description
•