Skip to content

Commit

Permalink
workaround for a weird dijit bug in setting dialog widths
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Feb 27, 2013
1 parent a6a761e commit f12b3ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/JBrowse/View/Dialog/WithActionBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
*/
define([
'dojo/_base/declare',
'dojo/dom-geometry',
'dijit/Dialog'
],
function( declare, dijitDialog ) {
function( declare, domGeom, dijitDialog ) {

return declare( dijitDialog,
{
Expand All @@ -29,6 +30,8 @@ return declare( dijitDialog,
show: function( callback ) {
this._addActionBar();
this.inherited( arguments );
var titleDims = domGeom.position( this.titleBar );
this.domNode.style.width = titleDims.w + 'px';
}

});
Expand Down

0 comments on commit f12b3ee

Please sign in to comment.