Comments (3)
Here is one way to do this:
After line 348 of stepper.js, insert: document.styleSheets[0].addRule('.mdl-step.is-active:not(:last-child) .mdl-step__label-indicator:after', 'height: '+(step.content.clientHeight+122)+'px');
Then remove the css rule .mdl-step.is-active:not(:last-child) .mdl-step__label-indicator:after
(it starts on line 175 of stepper.css)
from mdl-stepper.
@barrysteyn Thanks for suggestion, it is certainly a good solution. But I would keep the style rules (as possible) in the stylesheets and I will work on that as a CSS-only feature.
from mdl-stepper.
Hi @barrysteyn,
After v1.1.4
(5ff38bb), also available on NPM, you can have dynamic height for vertical steppers. To do this you only need to change the height
property of steps (default 460px
):
.mdl-step {
height: 820px;
}
Complete guide to handle the dimensions of steppers and steps soon in component page.
from mdl-stepper.
Related Issues (20)
- Make anything marked with data-stepper-next go to next by default. HOT 2
- Ability to align actions HOT 3
- angular material version HOT 1
- MDL Stepper v2 HOT 5
- MDL-Stepper not working with IE10 and Safari 8 HOT 3
- Stepper reset HOT 2
- Angular2 rc.6 implementation HOT 2
- MaterialStepper instance is not available after upgrading to MDL 1.2.1 HOT 3
- Demo link doesn't appear in the navigation for your documentation
- Dynamic content height of the horizontal stepper HOT 2
- Horizontal connector line on the horizontal stepper doesn't display in IE 11
- Horizontal steps don't align correctly after continue is clicked
- Add events for click on step label HOT 1
- Horizontal stepper IE issue
- Non Linear
- MaterialStepper instance is not available for selector: .mdl-stepper#ipet-stepper. HOT 5
- IE 11 getIndicatorContentCompleted_ tries to add multiple classes at once
- Step numbers aren't showing for me HOT 1
- Q: Does it support Material Design Lite themes?
- is correct add a button in label? 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 mdl-stepper.