K
K
Kirows2014-07-28 07:04:17
Telegram
Kirows, 2014-07-28 07:04:17

How to reduce page scroll height?

There is a page, on it there are 4 blocks with different heights and absolute positioning superimposed on each other. 3 blocks are invisible (visibility: hidden), 1 is visible, visibility is changed by the script.
Due to the different heights of the blocks, an empty space appears at the bottom of the document.
The jquery.scrollbar scroll script is used.
It is necessary to decrease and increase the height of the page scroll by the script, for the correct display.

PS: using absolute positioning is vital.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nllm, 2016-04-28
@brain2xml

When clicked, a callback request is sent, one of the parameters is the id of the message to which the keyboard is attached.
Use the editMessageText method ( https://core.telegram.org/bots/api#editmessagetext)) to change the message, not sendMessage

V
vdem, 2014-07-28
@Kirows

Instead of visibility: visible | hidden use display: block | none.
visibility: hidden does not hide the element from the output stream, it only hides it, i.e. it is still in the same place and occupies the same dimensions, only it does not display itself / its content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question