The width of the 1st level tab has been modified to expand according
to the size of the tab label.

The width of the adder dialogs have been increased to allow longer
button labels.

Ticket #1825

--
Endi S. Dewata
From 382fd4a07a2c61b82e0238400801453c493f34af Mon Sep 17 00:00:00 2001
From: Endi S. Dewata <edew...@redhat.com>
Date: Tue, 27 Sep 2011 16:19:51 -0500
Subject: [PATCH] Fixed tab and dialog widths.

The width of the 1st level tab has been modified to expand according
to the size of the tab label.

The width of the adder dialogs have been increased to allow longer
button labels.

Ticket #1825
---
 install/ui/aci.js     |    1 -
 install/ui/dialog.js  |    2 +-
 install/ui/dns.js     |    1 -
 install/ui/host.js    |    1 -
 install/ui/ipa.css    |    4 ++--
 install/ui/policy.js  |    1 -
 install/ui/service.js |    1 -
 7 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/install/ui/aci.js b/install/ui/aci.js
index fc62f2770979e95768a230c20c80d0aae0e3ce1e..6fd4a525a30013a82f894bfdd3c5dcfd4aec9fd9 100644
--- a/install/ui/aci.js
+++ b/install/ui/aci.js
@@ -63,7 +63,6 @@ IPA.entity_factories.permission = function() {
             facet_group: 'privilege'
         }).
         adder_dialog({
-            width: 500,
             height: 400,
             sections: [
                 {
diff --git a/install/ui/dialog.js b/install/ui/dialog.js
index f594a6c27fdce960de8d5f5a478d65f9d16e76a5..50bb194b3e42df12449c9920d089bae6a6f16a1d 100644
--- a/install/ui/dialog.js
+++ b/install/ui/dialog.js
@@ -34,7 +34,7 @@ IPA.dialog = function(spec) {
     that.name = spec.name;
     that.id = spec.id;
     that.title = spec.title;
-    that.width = spec.width || 400;
+    that.width = spec.width || 500;
     that.height = spec.height;
 
     that.buttons = {};
diff --git a/install/ui/dns.js b/install/ui/dns.js
index cf8f6861949edf4598dd382a625ceaf14508a53e..f5f617383e6e35db22e0accb0653949d28f2bc75 100644
--- a/install/ui/dns.js
+++ b/install/ui/dns.js
@@ -88,7 +88,6 @@ IPA.entity_factories.dnszone = function() {
         standard_association_facets().
         adder_dialog({
             factory: IPA.dnszone_adder_dialog,
-            width: 500,
             height: 300,
             fields: [
                 {
diff --git a/install/ui/host.js b/install/ui/host.js
index 6720b4fcabde2636cd88a0760e2bee006f9d00b9..a74ad5e48855d6fc23af13fa5da796f0bf482770 100644
--- a/install/ui/host.js
+++ b/install/ui/host.js
@@ -117,7 +117,6 @@ IPA.entity_factories.host = function () {
         standard_association_facets().
         adder_dialog({
             factory: IPA.host_adder_dialog,
-            width: 400,
             height: 250,
             sections: [
                 {
diff --git a/install/ui/ipa.css b/install/ui/ipa.css
index a838195c042ed0e236306e3a15a241c141152a48..5befe499fa939994c01228ae2de5472a8ed062ee 100644
--- a/install/ui/ipa.css
+++ b/install/ui/ipa.css
@@ -291,7 +291,7 @@ div.tabs {
     -moz-border-radius: 0 !important;
         -webkit-border-radius: 0 !important;
     font-family: "Overpass Bold","Liberation Sans", Arial, sans-serif;
-    width: 5em;
+    min-width: 5em;
     height: 20px;
     color: #858585;
     margin: 0 auto;
@@ -1223,7 +1223,7 @@ table.scrollable tbody {
 }
 
 .host-adder-dialog th.hostname {
-    width: 110px;
+    width: 200px;
 }
 
 .host-adder-dialog td.hostname {
diff --git a/install/ui/policy.js b/install/ui/policy.js
index 4c4733dc0529c5440eae2db3c941a8018cada99c..ac9eb20f71d0e6765aaa069fbae27304018511a4 100644
--- a/install/ui/policy.js
+++ b/install/ui/policy.js
@@ -52,7 +52,6 @@ IPA.entity_factories.pwpolicy = function() {
                     other_field: 'cn'
                 },
                 'cospriority'],
-            width: 400,
             height: 250
         }).
         build();
diff --git a/install/ui/service.js b/install/ui/service.js
index 87b0bbf20bd5aff1240980c5e19d1cd7db52266e..3a7920c006fc03e668f7d8cb72d3fbc6f4a4139b 100644
--- a/install/ui/service.js
+++ b/install/ui/service.js
@@ -71,7 +71,6 @@ IPA.entity_factories.service = function() {
         standard_association_facets().
         adder_dialog({
             factory: IPA.service_add_dialog,
-            width: 500,
             height: 300
         }).
         build();
-- 
1.7.5.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to