Fix width of the image history tree

This commit is contained in:
Joseph Schorr 2015-03-24 19:48:43 -04:00
parent 0d98776d54
commit a7a8571396

View file

@ -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 };