Closed
Bug 673206
Opened 14 years ago
Closed 14 years ago
Window resize due to keyboard shouldn't resize content browser windows
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 8
People
(Reporter: wesj, Assigned: wesj)
References
Details
(Whiteboard: [inbound])
Attachments
(1 file, 3 obsolete files)
|
2.00 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
When the software keyboard pops up in Android, we resize our window to take up the remaining width of the page. This can also result in us changing our cssviewport, causing windows to reflow and the form elements on them to potentially move around. It would be better if we could just avoid resizing (changing the css viewport) in this case.
We won't have to worry about making sure form elements at the bottom of the page are visible, because we will resize browser.xul. We just don't want to call getBrowser().setWindowSize() in this case.
Figuring out how to differentiate the two types of resizes may be the problem here.
| Assignee | ||
Updated•14 years ago
|
Assignee: nobody → wjohnston
Comment 1•14 years ago
|
||
related to bug 612999?
| Assignee | ||
Comment 2•14 years ago
|
||
Hmm... If I read that bug right, the fix would change the underlying cssViewport (the page would get wider), but the parent would not resize its displayport(? sorry if i"m getting names wrong here). In this bug, the cssviewport would not change when the keyboard appears, but we would change the width and height or browser.xul (not sure we have a fancy name for that?)
I was primarily noticing times when the form assistant is pointing to the wrong place. This can happen when the page layout changes due to the keyboard appearing. A message is sent to the parent telling it that the element moved, which can trigger a rezoom to recenter the element, which can trigger the ContentPopupHelper to move the popup. However, the ContentPopupHelper needs to be careful that it is using the new element rect, which right now, doesn't always seem to be true (but sometimes it does!).
I put this up as an "alternative" because it should fix that, and also reduce some of the jerkyness we see.
| Assignee | ||
Comment 3•14 years ago
|
||
We already had some code lying around to detect if this was due to keyboard or not.
Attachment #547528 -
Flags: review?(mark.finkle)
| Assignee | ||
Comment 4•14 years ago
|
||
Comment on attachment 547528 [details] [diff] [review]
Patch
Oh wait... that keyboard check is a bit... different than I though. Need to think about this for a second. Removing review request.
Attachment #547528 -
Flags: review?(mark.finkle)
| Assignee | ||
Comment 5•14 years ago
|
||
Updated this check to be a bit more generic (wish we had something better).
Attachment #547528 -
Attachment is obsolete: true
Attachment #548495 -
Flags: review?(21)
Comment 6•14 years ago
|
||
(In reply to comment #5)
> Created attachment 548495 [details] [diff] [review] [review]
> Patch v2
>
> Updated this check to be a bit more generic (wish we had something better).
Looks like you don't want to do |if (isDueToKeyboard)| otherwise you will end up doing thing only when it's the keyboard changes which is the opposite of the bug title? Or do i miss something?
| Assignee | ||
Comment 7•14 years ago
|
||
Whoops. Yep. A lazy last minute change. Fixing (and testing)...
| Assignee | ||
Comment 8•14 years ago
|
||
Updated.
Attachment #548495 -
Attachment is obsolete: true
Attachment #548495 -
Flags: review?(21)
Attachment #548528 -
Flags: review?(21)
| Assignee | ||
Comment 9•14 years ago
|
||
And the qrefed...
Attachment #548528 -
Attachment is obsolete: true
Attachment #548528 -
Flags: review?(21)
Attachment #548529 -
Flags: review?(21)
Comment 10•14 years ago
|
||
Comment on attachment 548529 [details] [diff] [review]
Path v2.1.1....1
(In reply to comment #0)
> We won't have to worry about making sure form elements at the bottom of the
> page are visible, because we will resize browser.xul. We just don't want to
> call getBrowser().setWindowSize() in this case.
This will potentially broke on Meego where the keyboard does not resize the windows but we can see if somebody complains about it one day... (which I doubt)
Attachment #548529 -
Flags: review?(21) → review+
| Assignee | ||
Comment 11•14 years ago
|
||
Whiteboard: [inbound]
Comment 12•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 8
You need to log in
before you can comment on or make changes to this bug.
Description
•