Comments (7)
We're using Twitter Bootstrap pretty much as is with very few minor modifications. That said, this issue is probably caused by:
https://github.com/inex/IXP-Manager/blob/master/public/css/900-ixp-manager.css#L5
Suggestions on fixing / improving this are welcome.
We've generally worked around this by reducing the number of menu items / using large enough screens as the number of admins are small. The member / customer portal has a small width requirement and consequently this should not be an issue there.
from ixp-manager.
It seems that if the "body" top-padding is static and Bootstrap's header resizes itself there will always be this problem to some degree, so I guess other than rewriting large sections of Bootstrap(!) the only way to resolve it (albeit not too elegantly) is by dynamically setting the body-top-padding via jquery. I found code that does something equivalent here http://stackoverflow.com/questions/10901494/css-set-width-of-one-div-based-on-another but am not yet familiar enough with IXP-Manager's codebase to know where exactly is the sensible place to insert such code. Obviously the difference from that code would be on load() rather than on click(), padding-top instead of width, etc...
from ixp-manager.
I should have said suggestions on fixing / improving this that don't involve JS hacks are welcome ;)
The design is standard Bootstrap and IXP Manager won't be the first to have this issue. It will most likely have been solved by others already and, if not, the best course of action is possibly a bug report / query to the Bootstrap project.
I'll leave this open and follow it up when I have some time.
from ixp-manager.
If you do want to put a JS hack on your own fork, after this line would be the place for it:
https://github.com/inex/IXP-Manager/blob/master/public/js/900-ixpmanager.js#L44
from ixp-manager.
Understood (hence the wording "albeit not too elegantly") :-D Although I suspect if such a behaviour has survived in Bootstrap for this long, it's probably deliberate, and not likely they will change such a fundemental behaviour(?) even if patches are provided. Thanks for the workaround-location-pointer.
from ixp-manager.
After doing far more reading on the subject than I ever wanted to, I've come to the conclusion that the only road to an "elegant" solution to this will be when browser implementation of CSS3 flexbox is widespread enough to be counted on. Until then it seems everything I find that could "cut it" involves the word "hack" more often than is comfortable... Of course I'd love for my conclusion to be wrong. I like surprises.
from ixp-manager.
In the end, it was actually very easy:
@media ( max-width: 1245px ) {
body {
padding-top: 100px;
}
}
A CSS selector that is only used if the width of the viewport is <1245 pixels.
Confirmed working in latest Chrome and Firefox for both zooming and increasing / decreasing window size.
from ixp-manager.
Related Issues (20)
- Master branch docker-compose setup broken; web interface error HOT 1
- Allow 2fa to be enabled on a per customer basis
- exception handler for Irrdb\\UpdateAsnDb, Irrdb\\UpdatePrefixDb HOT 2
- Whois PeeringDB closed Jan 2024
- IX-F export: allow excluding VLANs HOT 2
- Use MANRS API HOT 4
- Missing required parameter for [Route: customer@overview] [URI: customer/overview/{cust}/{tab?}] HOT 4
- Setup wizard for the initial database objects
- Looking Glass Page Syntax Error ! HOT 2
- MySQL issues with Install Script HOT 2
- Collector Startup Failure After Upgrade to Version 6.4.0 HOT 8
- Core bundle statistic page missing selection fields in mobile view
- IX-F Member Export Cannot Exlcude ASN/Tag HOT 1
- Misspelling "Port Utilisation" HOT 2
- ISSUE WITH MRTG HOT 1
- The masklen must not be greater than 64. HOT 2
- logger: "Driver [null] is not supported." HOT 3
- VLAN into IXPmanager is informational? HOT 1
- `/switch/store-by-snmp` fails with error 405 HOT 2
- The layer2 provisioner API reports the wrong port name for interfaces on different switches HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ixp-manager.