Navigation überspringen

[Gelöst] map height = calc(100vh – 73px)

This support ticket is created vor 5 Jahren, 10 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von romanB-3 vor 5 Jahren, 10 Monaten.

Assistiert von: Waqar.

Author
Artikel
#1224436

Hello,
In order to have the map full height, I set up a map height of calc(100vh - 73px), which works ok.
Still, the container of the map still is 100vh, so I got a page higher than its actual content.
How could I correct this ?
Thank you.

#1224459

Hi Roman,

Thank you for waiting.

During troubleshooting, I noticed that the vertical scroll bar on the page is not showing because of the map, but it is the result of two instances of inline "height:100vh;" styles.

Screenshot 1: versteckter Link
Screenshot 2: versteckter Link

Instead of adding inline height styles, you can include a special class "matchPageHeight" to these two div tags and add the following custom CSS code in the view's "éditeur CSS":


@media only screen and (min-width: 768px) {
.matchPageHeight {
  height: calc(100vh - 73px) !important;
}
}

Note: To check which CSS code is applying to different page elements, you can use Google Chrome's inspect element tool, as explained in this guide:
versteckter Link

regards,
Waqar

#1224491

My issue is resolved now. Thank you!