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

Commit b002387

Browse files
committed
making sure the size reading is correctly updated onload
1 parent 5f457a0 commit b002387

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/styleguide/js/styleguide.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@
333333
var origViewportWidth = $("#sg-viewport").width();
334334
$("#sg-gen-container").width(origViewportWidth);
335335
$("#sg-viewport").width(origViewportWidth - 14);
336+
updateSizeReading($("#sg-viewport").width());
336337

337338
// get the request vars
338339
var oGetVars = urlHandler.getRequestVars();

0 commit comments

Comments
 (0)