Merge changes Ic189011e,I7617a35b

* changes:
  Make references dialog scroll
  Make fieldset layout icons optional
This commit is contained in:
jenkins-bot 2013-06-13 17:04:19 +00:00 committed by Gerrit Code Review
commit 03127491b2
3 changed files with 14 additions and 5 deletions

View file

@ -14,11 +14,11 @@
*
* @constructor
* @param {Object} [config] Config options
* @cfg {string} [icon=''] Symbolic icon name
* @cfg {string} [icon] Symbolic icon name
*/
ve.ui.FieldsetLayout = function VeUiFieldsetLayout( config ) {
// Config initialization
config = ve.extendObject( { 'icon': 'window' }, config );
config = config || {};
// Parent constructor
ve.ui.Layout.call( this, config );
@ -27,8 +27,13 @@ ve.ui.FieldsetLayout = function VeUiFieldsetLayout( config ) {
ve.ui.LabeledElement.call( this, this.$$( '<legend>' ), config );
// Initialization
this.$label.addClass( 've-ui-icon-' + config.icon );
this.$.append( this.$label ).addClass( 've-ui-fieldsetLayout' );
if ( config.icon ) {
this.$.addClass( 've-ui-fieldsetLayout-decorated' );
this.$label.addClass( 've-ui-icon-' + config.icon );
}
this.$
.addClass( 've-ui-fieldsetLayout' )
.append( this.$label );
};
/* Inheritance */

View file

@ -133,6 +133,7 @@
.ve-ui-mwReferenceDialog-body {
padding: 2em;
overflow-y: auto;
}
.ve-ui-mwReferenceDialog-toolbar {

View file

@ -31,8 +31,11 @@
.ve-ui-fieldsetLayout > legend.ve-ui-labeledElement-label {
font-size: 1.5em;
padding-left: 1.75em;
margin-bottom: 1em;
}
.ve-ui-fieldsetLayout-decorated > legend.ve-ui-labeledElement-label {
padding-left: 1.75em;
background-position: left center;
background-repeat: no-repeat;
}