Comments (5)
I see what you mean. Simply adding a scrollbar doesn't work. So I need to find some other solution.
from webtrees-theme-justlight.
This is not something that could be solved easily, because this is the way webtrees charts works. You will see the same behavior in the default theme. I tried different things already but without success. I am not even sure if this can be fixed from the theme.
I leave this issue open for now to investigate this further, but I remove the 'bug'-label because this is not a theme bug.
from webtrees-theme-justlight.
Hi Carmen,
That's not my experience, see the attached screen dump using the webtrees theme where a horizontal scrollbar allows the right hand side of the chart to be seen
from webtrees-theme-justlight.
Hi Carmen,
I've been having a look at this problem and I can see a couple of problems. Fixing them is simple but I've no idea what impact they'd have elsewhere in the theme
- The first is overflow:hidden on #wrap; by removing this (or setting to overflow-y:hidden) a scroll bar appears allowing the right hand side of the chart to be made visible.
- Because most elements on a chart are absolutely positioned, the width set on the .container class is quite likely to be exceeded.
In addition I notice that you're setting box-sizing to border-box. I agree this is better and do it in my theme, however most of the charts calculate box size and position in code (you'll see lots of inline style stuff in any chart) and unfortunately those calculations assume box-sizing to be content-box (the joining lines and box spacing can go haywire if not set to this) and the way you're currently set up makes it difficult to change.
I found this quite elegant solution some time ago - I thought it was being submitted to the bootstrap team but if it was it doesn't seem to have been accepted (so far)
set your styles as follows:
html {
box-sizing: border-box;
etc.
}
*, *:before, *:after {
box-sizing: inherit;
}
I then create the following style to target any chart related stuff (and of course anything below this element now inherits it's box-sizing setting)
.charts_block,
[id$='_chart'] {
box-sizing: content-box;
}
Hope this is of some use
from webtrees-theme-justlight.
Hi David, thanks for figuring this out. I was completely on the wrong track.
But with your input I have fixed it. Tested it and seem to be working ok in all areas.
from webtrees-theme-justlight.
Related Issues (20)
- customize footer entries HOT 1
- border-color of checkboxes (justBlack)
- visibility of links (justBlack) HOT 4
- contrast in pick list for data in sources (justBlack) HOT 2
- Error Log Entry with v2.2.4 (2.2.5)
- Menu for mobiles: Hamburger and Kebab menu?
- disable search in top menu HOT 8
- Contrast in GVExport
- Question: Control panel HOT 1
- question: theme based on media query? HOT 1
- Places in wt 2.1.17 on small devices (or screen) HOT 6
- Hamburger menu in wt 2.1.17 does not react
- Mobile hamburger menu not working
- Translated file in German / Übersetzte Datei auf deutsch (de.php) HOT 1
- Hamburger menu not working on mobile with webtrees version 2.1.7 and JustLight 2.2.2.1 HOT 2
- Block borders in Justlight Palette HOT 1
- Justblack and Fanchart of Rico Sonntag HOT 3
- Custom Logo HOT 1
- No scroll bars no map views HOT 2
- Error
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 webtrees-theme-justlight.