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/associate.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'install/ui/associate.js') diff --git a/install/ui/associate.js b/install/ui/associate.js index f7ac1505..c1e0b429 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() { -- cgit