Comments (2)
I think the behaviour is correct, the bit that's confusing things (I think) is that the transform happens relative to the centre of the label. I think to get what you want you could shift the label (before transform) so that it's left edge is centered (left: 50%
), and then set the transform origin to the center of the left side (transform-origin: center left
). Then after rotation it would place the label 10px + half the height of the label from the bottom:
Some tweaking on the bottom
property might be needed to place it where you want.
The css looks like this (based on your example):
.module-sidebar-title {
top: 1s;
width: auto;
height: 20px;
overflow: visible;
bottom: 10px;
border-width: 1px;
border-color: red;
z-index: 200;
/* child-right: 1s; */
rotate: -90deg;
transform-origin: center left;
left: 50%;
color: #ffffff;
}
from vizia.
Ah, I think that makes sense. I was thinking that the label gets built and drawn and then the bottom: 10px
is done to the result of that, i.e. the bottom of the red borders around the label is placed 10 pixels from the bottom of the Vstack
.
from vizia.
Related Issues (20)
- Icons rendered incorrectly under Win10 HOT 3
- Hovering might be incorrect if display style changes.
- Wrong handling for double and triple click mouse events
- Wrong mouse position when using a view that use event listener HOT 1
- Styles do not get loaded on startup when we use element name HOT 2
- Add a way to keep animations state for a view after finishing (`fill-animation`)
- Scroll bar transitions trigger when minimizing/restoring the application window. HOT 3
- Adding tooltips causes lag/strange behavior.
- Add a way to detect when `Escape` key is used inside a `Textbox`.
- Miscellaneous issues and feature requests
- Fire events asynchronously HOT 2
- Add better support for dynamically sized TabViews HOT 1
- Setting overflow: hidden on a parent with border-radius doesn't clip contents in the corners HOT 2
- Changing font size causes icons to become uncentered.
- Properties like `opacity` wont work on emojis in texts
- on_press event bug: event fails to trigger when pressing children HOT 3
- Mouse locks up when releasing mouse capture outside the window in vizia_baseview
- The `font-stretch` property seems to be ignored
- UI is Completely Unresponsive using Baseview (macOS) HOT 6
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 vizia.