Bug 1310285 - Increase the width of the profile list in the "Switch Profile" dialog r=IanN a=Ratty for comm-central
authorPhilip Chee <philip.chee@gmail.com>
Wed, 23 Nov 2016 02:09:34 +0800
changeset 20740 9ebd91cfe43b98473430eba05a05467895b01c55
parent 20739 362abe195bfa64bf9f5d6f072f08de65459d84ce
child 20741 64ce0979ad96d1d52927c72befc7b4da263a1dbf
push id12557
push userphilip.chee@gmail.com
push dateTue, 22 Nov 2016 18:13:38 +0000
treeherdercomm-central@9ebd91cfe43b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, Ratty
bugs1310285
Bug 1310285 - Increase the width of the profile list in the "Switch Profile" dialog r=IanN a=Ratty for comm-central 1.Reduce the padding of the wizard-box. 2. Make the dialog resizable.
suite/common/tasksOverlay.js
suite/themes/classic/communicator/profile/profile.css
suite/themes/modern/communicator/profile/profile.css
--- a/suite/common/tasksOverlay.js
+++ b/suite/common/tasksOverlay.js
@@ -246,17 +246,17 @@ function toProfileManager()
   } else {
     var params = Components.classes["@mozilla.org/embedcomp/dialogparam;1"]
                  .createInstance(Components.interfaces.nsIDialogParamBlock);
 
     params.SetNumberStrings(1);
     params.SetString(0, "menu");
     window.openDialog("chrome://communicator/content/profile/profileSelection.xul",
                 "",
-                "centerscreen,chrome,titlebar",
+                "centerscreen,chrome,titlebar,resizable",
                 params);
   }
   // Here, we don't care about the result code
   // that was returned in the param block.
 }
 
 // This function is used by mac's platformCommunicatorOverlay
 function ZoomCurrentWindow()
--- a/suite/themes/classic/communicator/profile/profile.css
+++ b/suite/themes/classic/communicator/profile/profile.css
@@ -13,16 +13,22 @@ treechildren::-moz-tree-image {
   list-style-image: url("chrome://communicator/skin/profile/profileicon-large.gif");
 }
 
 treechildren::-moz-tree-image(rowMigrate-no) {
   list-style-image: url("chrome://communicator/skin/profile/migrate.gif");
 }
 
 /* profile selection dialog */
+
+/* Override global.css */
+hbox.wizard-box {
+  padding: 10px 10px 10px 10px;
+}
+
 #intro,
 #label {
   width: 17em;
 }
 
 #managebuttons > button {
   min-width: 8em;
 }
--- a/suite/themes/modern/communicator/profile/profile.css
+++ b/suite/themes/modern/communicator/profile/profile.css
@@ -16,16 +16,21 @@ treechildren::-moz-tree-image {
   margin-inline-end: 2px;
   list-style-image: url("chrome://communicator/skin/profile/profile.gif");
 }
 
 treechildren::-moz-tree-image(rowMigrate-no) {
   list-style-image: url("chrome://communicator/skin/profile/migrate.gif");
 }
 
+/* Override global.css */
+hbox.wizard-box {
+  padding: 10px 10px 10px 10px;
+}
+
 #intro,
 #label {
   width: 17em;
 }
 
 #managebuttons > button {
   min-width: 8em;
 }