AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

Page not filling full height

Open chlebta opened this issue 10 years ago • 16 comments

Hello, I got an issue when i don't have many content in my page then it's not filling the screen and a blank space in bottom is appearing. screen shot 2016-09-02 at 16 48 56

chlebta avatar Sep 02 '16 15:09 chlebta

Hi, do you have errors in your debugger (F12)?

dudnikgg avatar Sep 03 '16 06:09 dudnikgg

@dudnikgg no erros in my debugger

chlebta avatar Sep 05 '16 08:09 chlebta

+1, I have the same trouble

ashep avatar Sep 05 '16 10:09 ashep

Can you upload your source file to look at? I've tried to reproduce not having content on the page but it still fills the entire page for me. Perhaps you missed a closing HTML tag?

screen shot 2016-09-08 at 11 32 38 am

zburk avatar Sep 08 '16 15:09 zburk

I have the same issue. I think the problem is that javascript calculation isn't correct.

https://github.com/almasaeed2010/AdminLTE/blob/master/dist/js/app.js#L261

Here I think it should be

if (window_height >= sidebar_height + neg) {

pgouv avatar Sep 30 '16 09:09 pgouv

Hi,

I am using angular2 and I had the same problem.

I solved it by just loading the "app.js" in my AppComponent.

import { Component } from '@angular/core';

@Component({ selector: 'my-app', templateUrl: 'app/app.component.html' }) export class AppComponent { constructor() { console.log('preparing to load...') let node = document.createElement('script'); node.src = "../scripts/app/app.js"; // you app.js script node.type = 'text/javascript'; node.async = true; node.charset = 'utf-8'; document.getElementsByTagName('head')[0].appendChild(node); } }

Hope it helps.

wildcat010 avatar Oct 13 '16 14:10 wildcat010

Just add app.js to page

csotomon avatar Oct 13 '16 22:10 csotomon

I can't see last sidebar link. It is easy to reproduce. Open blank page, collapse Examples menu and manually remove content from control-sidebar (it is on right and populated from demo.js). Than try to resize the window until you do not see last sidebar link. adminlte 2 pace page last sidebar link

duleorlovic avatar Feb 10 '17 17:02 duleorlovic

+1, issue still exists.

ashep avatar Feb 10 '17 20:02 ashep

Yeah using angular 2 here. Loads fine, but when i change out the views the issue occurs. If i resize the screen the height gets fixed.

nothingalike avatar Feb 11 '17 17:02 nothingalike

+1, issue still exists when changing views

sageprosell avatar Dec 17 '17 12:12 sageprosell

+1

mauriziocarella avatar Jan 10 '18 21:01 mauriziocarella

I am having the same problem still no luck https://github.com/jeroennoten/Laravel-AdminLTE/issues/206

abhishektomer avatar May 13 '18 13:05 abhishektomer

i have the same issue with angular 6 . do you know what is the reason of this issue and what is the solution or workround ?

boussoufiane avatar Aug 02 '18 15:08 boussoufiane

Finally i fixe the problem by adding this to component :

declare var $:any; $('body').layout('fix'); NB : i use adminlte 2.4 with angular 6

boussoufiane avatar Aug 03 '18 09:08 boussoufiane

I solved my problem adding this css class to my sidebar.

.skin-blue .main-sidebar {
  position: fixed;
}
<div class="skin-blue">
<aside class="main-sidebar">
  <section class="sidebar">
    <ul class="sidebar-menu" data-widget="tree">
      <li class="header"></li>
      <li routerLinkActive="active">
        <a [routerLink]="['/dashboard/overview']">
        <i class="fas fa-home"></i><span> Painel </span></a></li>
      <li routerLinkActive="active">
        <a [routerLink]="['/dashboard/profile']">
        <i class="fas fa-user-circle"></i><span> Perfil </span></a>
      </li>
    </ul>
  </section>
</aside>
</div>

thiagoluiznunes avatar May 21 '19 01:05 thiagoluiznunes