Bug 1521294 - Remove XUL grid layout from security/manager/pki/resources/content/changepassword.xul. r=nhnt11
authorTim Nguyen <ntim.bugs@gmail.com>
Thu, 24 Jan 2019 01:00:43 +0000
changeset 515217 ac16e1408d672d6a94d5410b135af06ce30484a1
parent 515216 9aae2b5ef219907ff9647488ce19ccb755f96908
child 515218 27600f531b833fed53e3eb8bf9159f2c09e24370
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnhnt11
bugs1521294
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521294 - Remove XUL grid layout from security/manager/pki/resources/content/changepassword.xul. r=nhnt11 Differential Revision: https://phabricator.services.mozilla.com/D17059
security/manager/pki/resources/content/changepassword.xul
--- a/security/manager/pki/resources/content/changepassword.xul
+++ b/security/manager/pki/resources/content/changepassword.xul
@@ -21,44 +21,38 @@
 
 <hbox align="center">
   <label value="&setPassword.tokenName.label;: "/>
   <label id="tokenName" />
 </hbox>
 
 <separator/>
 
-<grid>
- <columns>
-   <column/>
-   <column/> 
- </columns>
- <rows>
-   <row>
-     <label value="&setPassword.oldPassword.label;"/> 
-     <textbox id="oldpw" type="password"/>
-     <!-- This textbox is inserted as a workaround to the fact that making the 'type' 
-          & 'disabled' property of the 'oldpw' textbox toggle between ['password' & 
-          'false'] and ['text' & 'true'] - as would be necessary if the menu has more 
-          than one tokens, some initialized and some not - does not work properly. So, 
-          either the textbox 'oldpw' or the textbox 'message' would be displayed, 
-          depending on the state of the token selected 
+<vbox>
+  <hbox>
+    <label flex="1" value="&setPassword.oldPassword.label;"/>
+    <textbox id="oldpw" type="password"/>
+    <!-- This textbox is inserted as a workaround to the fact that making the 'type'
+         & 'disabled' property of the 'oldpw' textbox toggle between ['password' &
+         'false'] and ['text' & 'true'] - as would be necessary if the menu has more
+         than one tokens, some initialized and some not - does not work properly. So,
+         either the textbox 'oldpw' or the textbox 'message' would be displayed,
+         depending on the state of the token selected
      -->
      <textbox id="message" disabled="true" />
-   </row>
-   <row>
-     <label value="&setPassword.newPassword.label;"/> 
-     <textbox id="pw1" type="password" 
-       oninput="setPasswordStrength(); checkPasswords();"/> 
-   </row>
-   <row>
-     <label value="&setPassword.reenterPassword.label;"/> 
-     <textbox id="pw2" type="password" oninput="checkPasswords();"/>  
-   </row>
- </rows>
-</grid>
+   </hbox>
+  <hbox>
+    <label flex="1" value="&setPassword.newPassword.label;"/>
+    <textbox id="pw1" type="password"
+             oninput="setPasswordStrength(); checkPasswords();"/>
+  </hbox>
+  <hbox>
+    <label flex="1" value="&setPassword.reenterPassword.label;"/>
+    <textbox id="pw2" type="password" oninput="checkPasswords();"/>
+  </hbox>
+</vbox>
 
 <vbox style="margin: 6px;">
   <html:label for="pwmeter" style="display: -moz-box;">&setPassword.meter.label;</html:label>
   <html:progress id="pwmeter" value="0" max="100"/>
 </vbox>
 
 </dialog>