Skip to content

Commit

Permalink
Fixes 4.5" x 4" preview (#1979)
Browse files Browse the repository at this point in the history
The preview for 4.5"x4" has been fixed.

Fixes #1968
  • Loading branch information
rajvaibhavdubey authored and mariobehling committed Jan 23, 2019
1 parent 1d1c7c2 commit 4ebb011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/components/create-badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export default Component.extend({
card[0].style.position = 'fixed';
card[0].style.right = '0';
card[0].style.top = '0';
EmberObject.$(document)[0].getElementsByClassName('bgImg ui raised segment')[0].style.height = '600px';
EmberObject.$(document)[0].getElementsByClassName('bgImg ui raised segment')[0].style.height = '100%';
} else if (e.type === 'scroll' && this.window.innerWidth >= 764 && (EmberObject.$(window).scrollTop() + EmberObject.$(window).height() > (EmberObject.$(document).height() - 100))) {
card[0].style.position = 'fixed';
EmberObject.$(document)[0].getElementsByClassName('bgImg ui raised segment')[0].style.height = '530px';
EmberObject.$(document)[0].getElementsByClassName('bgImg ui raised segment')[0].style.height = '100%';
} else {
EmberObject.$(document)[0].getElementsByClassName('bgImg ui raised segment')[0].style.height = '100%';
card[0].style.position = 'inherit';
Expand Down

0 comments on commit 4ebb011

Please sign in to comment.