Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Roberto José TORO OLMEDO
BrainBox
Commits
033fcc6f
Unverified
Commit
033fcc6f
authored
Nov 24, 2019
by
katja heuer
Committed by
GitHub
Nov 24, 2019
Browse files
Delete ReadMe.md
parent
edcbc8fe
Changes
1
Show whitespace changes
Inline
Side-by-side
view/atlasMaker/src/resources/ReadMe.md
deleted
100644 → 0
View file @
edcbc8fe
# Notes on UI
The file
`flex-tools-full`
shows the flex box design for the full tools bar. The file
`flex-tools-light`
shows the design for the reduced tools bar, including only the viewing
functionalities.
Aligning the different divs together is not simple. One important point is to use
`box-sizing: border-box`
as box-sizing model. With this setting, the
`width: 100%`
value
takes into account not only the div's content, but also the padding and the border.
Importantly, it does not take into account the margin, so it's better to avoid using
margin.
The main flex of the full tool bar has 5 children: (1) header, (2) slider, (3) buttons,
(4) pen size and (5) chat. The size of the first 4 children is fixed, but the chat child's
height stretches to fill the total height of main flex. A problem appears when we want to
make a div inside this last children (the chat box) use 100% of the height. The solution
is to make the chat box itself a flex container, and then make the div inside it flexible.
In the chat box this pattern is used several times, like this:
```
<div id='chatBlock' style='flex:1 1 auto;display:flex'>
<div id='chatBlockContent' style='flex:1;display:flex;flex-direction:column'>
<div style='flex:0 0 28px'></div>
<div style='flex:1 1 auto;display:flex'>
<div id='log' class='a' style='flex:1'></div>
</div>
<div style='flex:0 0 28px'></div>
</div>
</div>
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment