Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit aab25da

Browse files
committed
better handle when there is no margin top / bottom
1 parent 7febf7c commit aab25da

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

dist/jquery.poplockit.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
Column.__super__.constructor.call(this, $el, settings);
4141
this.$el = $el;
4242
this.settings = settings;
43+
this.marginTop = 0;
44+
this.marginBottom = 0;
45+
this.marginLeft = 0;
4346
this.setDimensions(settings.height, settings.marginTop, settings.marginBottom, settings.marginLeft);
4447
this;
4548

dist/jquery.poplockit.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/jquery.poplockit.coffee

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
super($el, settings)
3737
@$el = $el
3838
@settings = settings
39+
40+
# defaults
41+
@marginTop = 0
42+
@marginBottom = 0
43+
@marginLeft = 0
44+
3945
@setDimensions settings.height, settings.marginTop, settings.marginBottom, settings.marginLeft
4046
@
4147

src/jquery.poplockit.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)