Skip to content

Commit

Permalink
Merge pull request #2571 from PaulL1/2542_401_render
Browse files Browse the repository at this point in the history
Fix #2542 (renderContainer): mis-render on 401 on initial render
  • Loading branch information
PaulL1 committed Jan 16, 2015
2 parents db48c95 + a684c17 commit fe38be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/core/directives/ui-pinned-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
var width = 0;
for (var i = 0; i < cols.length; i++) {
var col = cols[i];
width += col.drawnWidth;
width += col.drawnWidth || col.width || 0;
}

myWidth = width;
Expand Down Expand Up @@ -57,7 +57,7 @@
}

grid.renderContainers.body.registerViewportAdjuster(function (adjustment) {
if ( myWidth === 0 ){
if ( myWidth === 0 || !myWidth ){
updateContainerWidth();
}
// Subtract our own width
Expand Down

0 comments on commit fe38be0

Please sign in to comment.