Closed Bug 1204101 Opened 9 years ago Closed 9 years ago

Gear menu cutoff with longer strings

Categories

(Hello (Loop) :: Client, defect, P2)

defect

Tracking

(firefox43 fixed, firefox44 fixed)

RESOLVED FIXED
mozilla44
Iteration:
43.3 - Sep 21
Tracking Status
firefox43 --- fixed
firefox44 --- fixed

People

(Reporter: dcritchley, Assigned: dcritchley)

References

Details

User Story

As a user, I see the full gear menu without cropping.

Acceptance Criteria: See Above.

Tech Checklist: 
* Appears to be a bug in DropdownMenuMixin, start debugging here
* Could be a CSS bug?

Note:
Currently not a problem with the short English strings, would be a problem with locales having longer strings.

Attachments

(2 files, 1 obsolete file)

Attached image Gear Menu cropped with longer text (deleted) —
No description provided.
Iteration: --- → 43.3 - Sep 21
User Story: (updated)
Priority: -- → P2
Blocks: 1179164
Rank: 20
Assignee: nobody → david.critchley
Fix for Loop settings menu positioning where menu gets cropped from longer text
Attachment #8665122 - Flags: review?(dmose)
Comment on attachment 8665122 [details] [diff] [review] Attachment to Bug 1204101 - Gear menu cutoff with longer strings Review of attachment 8665122 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patch; looks good; it just need a few tweaks. Please generally try and wrap things at 80 columns, except when it's likely to look particularly awkward not doing so. (Eg the comments here generally look re-wrappable). ::: browser/components/loop/content/shared/js/mixins.js @@ +230,5 @@ > > + // Added call to _repositionMenu() if it exists, to allow a component to add specific repositioning to a menu > + // This mixin should be deprecated and a new solution implemented for processing menus and taking care > + // of menu positioning globally. This new implementation should ensure all menus are positioned using the > + // same method of positioning I think this the last three lines of this comment want to go at the top of the mixin so that anyone looking at the mixin code for the first time will see it. It'd also be good to add a couple of sentences about what's wrong with the existing implementation, and a link to the bug where it will be replaced. @@ +231,5 @@ > + // Added call to _repositionMenu() if it exists, to allow a component to add specific repositioning to a menu > + // This mixin should be deprecated and a new solution implemented for processing menus and taking care > + // of menu positioning globally. This new implementation should ensure all menus are positioned using the > + // same method of positioning > + if(this._repositionMenu) { Nit: if(this._repositionMenu) needs a space between the if and the parens. If you could file a bug (and CC me) to add this rule <http://eslint.org/docs/rules/space-after-keywords> to our .eslintrc so that we can get a much tighter feedback loop for this problem, that'd be awesome. ::: browser/components/loop/content/shared/js/views.jsx @@ +202,5 @@ > }; > }, > > /** > + * Reposition Menu if cropped Does this work as-is in RTL mode? Or do we need to handle that side explicitly too. It'd be good to have a comment explaining exactly how it repositions it (i.e. it pulls it into the parent(?) just enough to be visible and no further).
Attachment #8665122 - Flags: review?(dmose) → review+
Fix for Loop settings menu positioning where menu gets cropped from longer text
Attachment #8665122 - Attachment is obsolete: true
Attachment #8665692 - Flags: review?(dmose)
Comment on attachment 8665692 [details] [diff] [review] Attachment to Bug 1204101 - Gear menu cutoff with longer strings Review of attachment 8665692 [details] [diff] [review]: ----------------------------------------------------------------- Looks good; r=dmose
Attachment #8665692 - Flags: review?(dmose) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Comment on attachment 8665692 [details] [diff] [review] Attachment to Bug 1204101 - Gear menu cutoff with longer strings Approval Request Comment [Feature/regressing bug #]: Hello visual refresh [User impact if declined]: If a localisation has long text for a string in a popup menu in the Hello conversation window, then the menu may be displayed with some of it outside of the window, but hidden, and hence not all of the text would be readable. [Describe test coverage new/current, TreeHerder]: Code is generally covered by tests. [Risks and why]: Low, small localised change to Hello's menu positioning code. [String/UUID change made/needed]: None
Attachment #8665692 - Flags: approval-mozilla-aurora?
Comment on attachment 8665692 [details] [diff] [review] Attachment to Bug 1204101 - Gear menu cutoff with longer strings Minor change to Hello text and menu layout, OK to uplift to aurora
Attachment #8665692 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: