From 9704adfe44c915de97f416c18bcaeabea2c927ba Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 7 Jun 2011 20:48:20 -0500 Subject: Fixed resizing issues. The UI has been modified to fix some resizing issues: Previously the height of facet content was roughly calculated using resize(). Now the height can be more accurately defined in CSS. Previously the UI width was fixed. The HTML layout and background images have been modified to support horizontal expansion if needed. --- install/ui/Makefile.am | 3 + install/ui/associate.js | 19 +- install/ui/background-center.png | Bin 0 -> 2839 bytes install/ui/background-left.png | Bin 0 -> 3193 bytes install/ui/background-right.png | Bin 0 -> 3211 bytes install/ui/details.js | 25 +- install/ui/dialog.js | 6 - install/ui/entity.js | 32 +- install/ui/index.html | 44 +- install/ui/ipa.css | 853 +++++++++++++-------- install/ui/navigation.js | 16 +- install/ui/search.js | 22 +- .../ui/test/functional/user-password-reset.html | 4 +- install/ui/test/navigation_tests.js | 16 +- install/ui/webui.js | 11 - install/ui/widget.js | 20 +- 16 files changed, 617 insertions(+), 454 deletions(-) create mode 100755 install/ui/background-center.png create mode 100755 install/ui/background-left.png create mode 100755 install/ui/background-right.png diff --git a/install/ui/Makefile.am b/install/ui/Makefile.am index 5f77b0698..87607a1a0 100644 --- a/install/ui/Makefile.am +++ b/install/ui/Makefile.am @@ -12,6 +12,9 @@ app_DATA = \ add.js \ associate.js \ automount.js \ + background-center.png \ + background-left.png \ + background-right.png \ caution.png \ centered-bg.png \ check.png \ diff --git a/install/ui/associate.js b/install/ui/associate.js index f7ac1505e..c1e0b429f 100644 --- a/install/ui/associate.js +++ b/install/ui/associate.js @@ -717,10 +717,6 @@ IPA.association_facet = function (spec) { that.columns.put(column.name, column); }; - that.resize = function(){ - that.table.resize(); - }; - that.create_column = function(spec) { var column = IPA.column(spec); if (spec.link_entity){ @@ -769,6 +765,7 @@ IPA.association_facet = function (spec) { that.table = IPA.table_widget({ id: that.entity_name+'-'+that.other_entity, + 'class': 'content-table', name: pkey_name, label: label, entity_name: that.entity_name, @@ -863,18 +860,8 @@ IPA.association_facet = function (spec) { that.create_content = function(container) { - var span = $('', { 'name': 'association' }).appendTo(container); - - that.table.create(span); - }; - - that.setup = function(container) { - - that.facet_setup(container); - - var span = $('span[name=association]', that.container); - - that.table.setup(span); + that.table.create(container); + that.table.setup(container); }; that.show = function() { diff --git a/install/ui/background-center.png b/install/ui/background-center.png new file mode 100755 index 000000000..92653e8b7 Binary files /dev/null and b/install/ui/background-center.png differ diff --git a/install/ui/background-left.png b/install/ui/background-left.png new file mode 100755 index 000000000..acd339424 Binary files /dev/null and b/install/ui/background-left.png differ diff --git a/install/ui/background-right.png b/install/ui/background-right.png new file mode 100755 index 000000000..ad7c63e7c Binary files /dev/null and b/install/ui/background-right.png differ diff --git a/install/ui/details.js b/install/ui/details.js index 237de6024..c0b560cd6 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -407,8 +407,8 @@ IPA.details_facet = function(spec) { that.create_content = function(container) { - var details = $('
', { - 'name': 'details' + that.content = $('
', { + 'class': 'details-content' }).appendTo(container); var sections = that.sections.values; @@ -418,7 +418,7 @@ IPA.details_facet = function(spec) { var header = $('

', { name: section.name, title: section.label - }).appendTo(details); + }).appendTo(that.content); var icon = $('', { name: 'icon', @@ -432,7 +432,7 @@ IPA.details_facet = function(spec) { var div = $('
', { name: section.name, 'class': 'details-section' - }).appendTo(details); + }).appendTo(that.content); header.click(function(section, div) { return function() { @@ -443,25 +443,26 @@ IPA.details_facet = function(spec) { section.create(div); - details.append('
'); + if (i < sections.length-1) { + that.content.append('
'); + } } - - that.resize(); + $('', { + name: 'summary', + 'class': 'details-summary' + }).appendTo(container); }; - that.setup = function(container) { that.facet_setup(container); - var details = $('div[name=details]', that.container); - var sections = that.sections.values; for (var i=0; i', { title: other_facet.name, @@ -579,13 +566,14 @@ IPA.entity_header = function(spec) { }).appendTo(li); }; - that.facet_group = function(facet_group) { + that.create_facet_group = function(container, facet_group) { var section = $('', { - 'class': 'facet-tab-group' - }).appendTo(that.facet_tabs); + 'class': 'facet-group' + }).appendTo(container); - $('