Fix width of the image history tree
This commit is contained in:
parent
0d98776d54
commit
a7a8571396
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ function ImageHistoryTree(namespace, name, images, formatComment, formatTime, fo
|
|||
* Calculates the dimensions of the tree.
|
||||
*/
|
||||
ImageHistoryTree.prototype.calculateDimensions_ = function(container) {
|
||||
var cw = Math.max(document.getElementById(container).clientWidth, this.maxWidth_ * DEPTH_WIDTH);
|
||||
var cw = document.getElementById(container).clientWidth;
|
||||
var ch = this.maxHeight_ * (DEPTH_HEIGHT + 10);
|
||||
|
||||
var margin = { top: 40, right: 20, bottom: 20, left: 80 };
|
||||
|
|
Reference in a new issue