Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 15c4e66

Browse files
committed
Update the units toolbar when Hay! mode is active.
1 parent 7e26a3e commit 15c4e66

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

public/styleguide/js/annotations-viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var annotationsViewer = {
5858
}
5959

6060
$('body').delegate('#sg-annotation-close-btn','click',function(e) {
61-
annotationsViewer.slideComment($('#sg-annotation-container').outerHeight());
61+
annotationsViewer.slideComment($('#sg-annotation-containers').outerHeight());
6262
return false;
6363
});
6464

public/styleguide/js/styleguide.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,12 @@
160160
hayMode = true;
161161
$('#sg-gen-container').removeClass("vp-animate").width(minViewportWidth+viewportResizeHandleWidth);
162162
$sgViewport.removeClass("vp-animate").width(minViewportWidth);
163+
163164
var timeoutID = window.setTimeout(function(){
164165
$('#sg-gen-container').addClass('hay-mode').width(maxViewportWidth+viewportResizeHandleWidth);
165166
$sgViewport.addClass('hay-mode').width(maxViewportWidth);
167+
168+
setInterval(function(){ var vpSize = $sgViewport.width(); updateSizeReading(vpSize); },100);
166169
}, 200);
167170
}
168171

0 commit comments

Comments
 (0)