Comments (2)
Nevermind. Was using it absolutely wrong. Needs documentation. Might attempt a PR into docs once I get this fixed.
from reactackle.
Hi!
Sorry to hear that you have difficulties with Reactackle. I completely agree that our docs lack information…like a lot. So we’d be very grateful for any contributions. Thank you!
Here’re few notes about how Sidebar works. We’ll add it to the docs shortly. Would you like to add anything to it?
Sidebar consists of 2 wrappers: Sidebar (the top one) and SidebarBox.
Sidebar-wrapper is positioned relatively to set proper boundaries for the SidebarBox to avoid using JS for the most cases. As SidebarBox is now positioned fixedly you should make sure that Sidebar (top wrapper) height completely fits window height. We'll probably add the possibility to scroll Sidebar with the screen a bit later.
In Reactackle we have an App component with few regions: Top, Main and Bottom. Sidebar is designed to be placed in MainRegion - this helps to set Sidebar height and to make sure that main content of the page (component Content), placed aside Sidebar, will change its width whether Sidebar is collapsed or not. To make Sidebar fit windows height you should set to set App's prop.fixed to true. It'll work with following restrictions:
- If you don’t have anything above Sidebar or have anything with constant height, Sidebar is going to work on its own.
- If you’re going to temporarily add anything above Sidebar or have the component which height varies, you'll need to dynamically change top coordinate of the SidebarBox. Also, as SidebarBox is positioned fixedly, you’ll need to set a height for SidebarBox, for example, equals to ‘100vh - ${topOffset + bottomOffset}’, to make sure Sidebar fits the screen height.
from reactackle.
Related Issues (20)
- [doc] Wrong example for Sidebar HOT 1
- [doc] Wrong route for Sidebar GENERAL tab
- Add possibility to change html block type in Text
- Add tests for Text component
- Background doesn't work in Icon
- Add height management possibilities to the Sidebar
- Allow Sidebar to scroll with window
- Add possibility to fix Dialog’s height
- Dialog positioning enhancement
- Fix stateless accordion demo
- Add factory to the menu component. Render from JSON
- Add custom content tooltip to the Text, Checkbox, Tag component HOT 1
- Check why Static tooltip with custom wrapper position is strange.
- ReferenceError: window is not defined HOT 2
- Add SSR support
- reactackle-checkbox tab behavior, focused twice, label with tabIndex=0 HOT 1
- reactackle-checkbox calls props.onChange with object {value: checked} HOT 1
- Is this project alive? HOT 1
- Update styled-components to v4 HOT 1
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 reactackle.