question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Height auto on element

See original GitHub issue

Hey, I’ve just update to version 2.3.11 the js code is adding height: auto on html, body and main because of this line. I want a height: 100% and it is pretty hard to override an element css rule. Is there another way to fix #1191 without doing this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
raziel057commented, Jun 21, 2017

Maybe an option could allow to active this behavior. Currently app.js (adminlte.min.js) must not be included in login pages but it must be the case for all other pages:

<!-- jQuery 3.1.1 -->
<script src="../../plugins/jQuery/jquery-3.1.1.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="../../bootstrap/js/bootstrap.min.js"></script>
<!-- iCheck -->
<script src="../../plugins/iCheck/icheck.min.js"></script>
<!-- jQuery 3.1.1 -->
<script src="../../plugins/jQuery/jquery-3.1.1.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="../../bootstrap/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="../../plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>

When working with Single pages applications, all main js script must be added to the main page to be loaded. So it would be bad to not import app.js (adminlte.min.js in this example). But when imported, it break the login page because of the $.AdminLTE.layout.activate() call.

1reaction
mxgr7commented, May 8, 2017

Is this going to be addressed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

height - CSS: Cascading Style Sheets - MDN Web Docs
The height CSS property specifies the height of an element. By default, the property defines the height of the content area.
Read more >
difference between css height : 100% vs height : auto
height: auto means the element height will depend upon the height of its children. Consider these examples: height: 100% <div style="height: ...
Read more >
height | CSS-Tricks
When using the keyword auto , height is calculated based on the elements content area unless explicitly specified.
Read more >
How to make div height expand with its content using CSS
height: auto; It is used to set height property to its default value. · height: length; It is used to set the height...
Read more >
Setting Height And Width On Images Is Important Again
How CSS Interacts With Element Widths And Heights # ... This is actually very easily fixed by adding a height: auto line to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found