Fix bug in Image Control slider
This commit is contained in:
1 parent
9496410e55
commit
dae53c25f9
1 file changed
-2
@@ -4,7 +4,6 @@ let slideTimeout;
|
|||||||
Template.imageControls.onRendered(() => {
|
Template.imageControls.onRendered(() => {
|
||||||
const instance = Template.instance();
|
const instance = Template.instance();
|
||||||
|
|
||||||
Meteor.defer(() => {
|
|
||||||
// Set the current imageSlider width to its parent's height
|
// Set the current imageSlider width to its parent's height
|
||||||
// (because webkit is stupid and can't style vertical sliders)
|
// (because webkit is stupid and can't style vertical sliders)
|
||||||
const $slider = instance.$('#imageSlider');
|
const $slider = instance.$('#imageSlider');
|
||||||
@@ -12,7 +11,6 @@ Template.imageControls.onRendered(() => {
|
|||||||
const viewportHeight = $element.height();
|
const viewportHeight = $element.height();
|
||||||
|
|
||||||
$slider.width(viewportHeight - 20);
|
$slider.width(viewportHeight - 20);
|
||||||
});
|
|
||||||
})
|
})
|
||||||
|
|
||||||
Template.imageControls.events({
|
Template.imageControls.events({
|
||||||
|
|||||||
Reference in new issue
Block a user