Author: sevein
Date: Mon Aug 8 14:52:02 2011
New Revision: 9459
Log:
Add height setting to QubitDialog to build dialog with fixed height and
scrollbars (needed in rights dialog)
Modified:
trunk/js/dialog.js
Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js Mon Aug 8 14:28:31 2011 (r9458)
+++ trunk/js/dialog.js Mon Aug 8 14:52:02 2011 (r9459)
@@ -79,6 +79,14 @@
+ ' </div>'
+ '</div>').appendTo('body');
+ // Set overflow and height if options.height provided
+ if (undefined !== thisDialog.options.height)
+ {
+ $yuiDialogWrapper.find('.bd')
+ .css('overflow', 'auto')
+ .height(thisDialog.options.height);
+ }
+
// Replace dialog table with "Add" link and move into dialog wrapper
$(this.table).appendTo($yuiDialogWrapper.find('form'));
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.