Closed Bug 1016368 Opened 11 years ago Closed 11 years ago

STK Dialogs new layout

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED FIXED
2.0 S4 (20june)
tracking-b2g backlog

People

(Reporter: frsela, Assigned: frsela)

Details

Attachments

(6 files, 1 obsolete file)

Attached patch ICC New layout (obsolete) — Splinter Review
From bug 1009254 UX team asked for a new layout for all STK dialogs (alerts, prompts, ...) This bug is to track the new STK layout patch
Assignee: nobody → frsela
Comment on attachment 8429276 [details] [diff] [review] ICC New layout Review of attachment 8429276 [details] [diff] [review]: ----------------------------------------------------------------- ::: apps/system/js/icc.js @@ +247,5 @@ > + viewId.style.height = > + (window.innerHeight - keyboardHeight - StatusBar.height) + 'px'; > + } > + viewId.style.height = window.innerHeight - StatusBar.height + 'px'; > + viewId.style.marginTop = StatusBar.height + 'px'; Maybe you can move the 2 lines here into the icc_keyboardChanged method, and just call that here instead of duplicating code. @@ +250,5 @@ > + viewId.style.height = window.innerHeight - StatusBar.height + 'px'; > + viewId.style.marginTop = StatusBar.height + 'px'; > + window.addEventListener('keyboardchange', icc_keyboardChanged); > + window.addEventListener('keyboardhide', icc_keyboardChanged); > + }, You may also want to remove the event listeners when the view is closed. Otherwise this code will keeps firing even if the dialog is closed.
Attachment #8429276 - Flags: feedback?(21) → feedback+
blocking-b2g: --- → 1.4?
status-b2g-v1.4: ? → ---
blocking-b2g: 1.4? → backlog
Feature request - so not blocking.
Attached file STK New layout patch
Your comments addressed. Also I added support for STK long descriptions (multiline).
Attachment #8429276 - Attachment is obsolete: true
Attachment #8430665 - Flags: review?(21)
Comment on attachment 8430665 [details] [review] STK New layout patch f+ instead of r+ as I would like to see a new version of the patch.
Attachment #8430665 - Flags: review?(21) → feedback+
Comment on attachment 8430665 [details] [review] STK New layout patch Thank you Vivien, A new version with your last comments addressed.
Attachment #8430665 - Flags: review?(21)
Target Milestone: --- → 2.0 S4 (20june)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: