meteor-factory / meteor-admin-lte

23 stars 34 forks source link

min-height property not working #17

Open aritragster opened 8 years ago

aritragster commented 8 years ago

My app is coming upto the half portion of screen only. Can you please let me know why the min-height property of body is not working?

danielparas commented 8 years ago

have the same issue here

greatramu commented 8 years ago

temporary workaround:

Template.<layout>.created = function () {
    var self = this;

    self.minHeight = new ReactiveVar($(window).height() - $('.main-header').height() - 50);

    $(window).resize(function () {
        self.minHeight.set($(window).height() - $('.main-header').height() - 50);
    });
};

Template.<layout>.helpers({
    minHeight: function () {
        return Template.instance().minHeight.get() + 'px'
    }
});

(assuming footer to be 50 px. Replace with your layout template name)

Kasmetski commented 8 years ago

I think you have a mistake on the first line; Template.<layout>.created = function () { Shouldn't be Template.<layout>.onCreated = function () {