Answer the question
In order to leave comments, you need to log in
How to set a fixed-adaptive block height?
Hello!
Site https://bit.ly/2Qyl3Il There is a slider on the main page of the site. Before JS initialization, they have a size of 0px, after initialization, the sizes are recalculated and the page is redrawn. The task is to avoid recalculation of sizes and redraws. Those. if I give the slider block a fixed height:
<div id="mmr-owl" class="owl-carousel" style="height:<?php echo $height ?>px;">
Answer the question
In order to leave comments, you need to log in
That's what I needed! Thanks everyone!
query="insert into `order`(ByerId,Price) select id,%s from byer where Name=%s"
cursor.execute(query, (Price,Name))
INSERT INTO oreder(ProviderId, Price) VALUES(_providerId, _price)
The method suggested by SmthTo is good when all slides are the same.
If the slides have a different number of heights and auto-adjust the height when changing the slide, it will not work.
I'll add another one that I use.
It is primitive: we just set the height of the wrapper for an uninitialized slider:
.myslider:not(.owl-loaded) {
height: 300px;
overflow-y: scroll;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question