Comments (3)
I have a similar issue where I have bootstrap tabs (11 of them) with a various amount of toggles on each tab. When the page loads the first tab appears fine and the style of the div that is generate sets the correct width. However if you change tabs, or inspect in the code, all the toggles on the other tabs have are rendered as <div class="toggle btn btn-success" data-toggle="toggle" role="button" style="width: 0px; height: 0px;">
from bootstrap-toggle.
@steven
Did you tried to use the $(document).ready(function() { }
mentioned with my post? Just looked into my code again, there I added
// The text length of data-on/data-off on the 'modal' cannot be
// calculated as long as it is not open, so it is set to 'width:0px';
// When the modal is opened, the 'style' is calculated:
$('#mutedOp')[0].children[1].setAttribute('style',"width:80px")
(also to remind myself about the issue ;) )
.. but still waiting for another, better solution ...
from bootstrap-toggle.
Yeah I ended up fixing it by simply adding these CSS classes to set the height and width that I need
.tab-pane .toggle, .modal .toggle{
min-width: 75.1791px !important; height: 35.597px !important;
}
from bootstrap-toggle.
Related Issues (20)
- Button only toggles once; button display doesn't have border HOT 3
- Styling Disabled Toggle HOT 3
- Float Element Classes
- bootstrap outline class not working on data-off HOT 1
- readonly attribute is ignored HOT 3
- Events not reaching Stimulus.js
- Bootstrap 4.3.1 HOT 3
- Click event? HOT 1
- How do I grab the checked value on init? HOT 2
- Issue with out-of-the-box css
- Value is always true
- .bootstrapToggle('off') not working from change event HOT 2
- Change data-on/off text/label with .bootstrapToggle('disable') / ('enable')
- bootstrap-toggle not working in angular 11 HOT 1
- Support Bootstrap 5
- onchange function Runs twice. HOT 2
- how to change style of text to bold? HOT 1
- Confirmation Dialogue HOT 4
- How to align images?
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 bootstrap-toggle.