# 992 breakpoint offest?

**URL:** <https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791>\
**Category:** Bug Reports\
**Created:** [May 10, 2022, 7:34pm UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791 "2022-05-10T19:34:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![maclm](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@maclm](https://forum.bootstrapstudio.io/u/maclm)\
**Post date:** [May 10, 2022, 7:34pm UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/1 "2022-05-10T19:34:40Z")

</div>

Hi folks [@moderators](https://forum.bootstrapstudio.io/groups/moderators),  
I risk posting this in the BUG REPORTS category, as it might very well be that I missed something.

Here goes: `@media (min-width:992px)` seems to be ignored at stage width of 992px, but is effective at 994px.

It might look like me being picky, but as the _LG Breakpoint button_ is set to 992px, it becomes misleading when designing a gallery (among other things).

Here are the steps to reproduce what I see as a bug, using _Bootstrap Studio 6.0.1_:

1. create a blank project using Bootstrap 5.1
2. insert a container
3. in the _Appearance_ pane, confirm that the container’s width matches the first max-width media query
4. with the container selected, in the _Style_ pane, we see a series of media queries, for 1400, 1200, 992, 768 and 576 min-width. Only the first one is active for now.
5. click the _LG Breakpoint button_ to set the stage to 992px, the first media query is now `@media (min-width:768px)`
6. manually enlarge the stage to 994px and the media query `@media (min-width:992px)` comes back

It looks to me there is a (tiny but annoying) offset around that 992 breakpoint.

For the giggles, I just redownloded _Bootstrap Studio 5.9.3_ to try this, aaaand… this “bug” is not there!

What do you think?  
Have I overlooked something?

I look forward to hearing from you guys.

---

<div class="post-metadata">

**Author:** ![richards](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/richards/32/3163_2.png) [@richards](https://forum.bootstrapstudio.io/u/richards)\
**Post date:** [May 10, 2022, 9:11pm UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/2 "2022-05-10T21:11:28Z")

</div>

Unless I’m missing something, it is coming up with 992 for me

 ![image](https://forum.bootstrapstudio.io/uploads/default/original/2X/6/6b1266efcc47d8ee30ec80e5b4f4ca2bc607c266.png)

---

<div class="post-metadata">

**Author:** ![maclm](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@maclm](https://forum.bootstrapstudio.io/u/maclm)\
**Post date:** [May 10, 2022, 11:47pm UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/3 "2022-05-10T23:47:30Z")

</div>

Hi @richards,  
thanks for sharing this. It prompted me to do more testing.  
Here’s what I get using BSS 6.0.1

 ![601a](https://forum.bootstrapstudio.io/uploads/default/original/2X/4/4dd66a85f7960dd2841aa1eb724921e5cb3ecf3f.png)

This is what I get with BSS 6.0.0 (same with 5.9.3):

 ![600a](https://forum.bootstrapstudio.io/uploads/default/original/2X/d/dcb88dfde5db27a3d181dc9e543c20bacd9ec6c0.png)

Are you running BSS 6.0.0 by any chance?

---

<div class="post-metadata">

**Author:** ![richards](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/richards/32/3163_2.png) [@richards](https://forum.bootstrapstudio.io/u/richards)\
**Post date:** [May 11, 2022, 7:48am UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/4 "2022-05-11T07:48:39Z")

</div>

No, I am on 6.0.1

I did manage to make it replicate the bug by changing the zoom and UI scale

---

<div class="post-metadata">

**Author:** ![richards](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/richards/32/3163_2.png) [@richards](https://forum.bootstrapstudio.io/u/richards)\
**Post date:** [May 11, 2022, 9:02am UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/5 "2022-05-11T09:02:56Z")

</div>

Update:

It is the UI scale, it seems to make bss go a bit crazy changing all the layout values in the appearance tab

 ![image](https://forum.bootstrapstudio.io/uploads/default/original/2X/6/6137b2ab72a9d69fca8d924ac537a044e87f602e.png)

If doesn’t seem to affect the actual code when looking at the preview in chrome

---

<div class="post-metadata">

**Author:** ![martin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/martin/32/3_2.png) [@martin](https://forum.bootstrapstudio.io/u/martin)\
**Post date:** [May 11, 2022, 9:10am UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/6 "2022-05-11T09:10:51Z")

</div>

Thank you for the report and screenshots! The UI scaling can affect breakpoints due to rounding of pixel values.

@maclm can you confirm whether the bug occurs when you’ve set UI scaling to 100%?

---

<div class="post-metadata">

**Author:** ![maclm](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@maclm](https://forum.bootstrapstudio.io/u/maclm)\
**Post date:** [May 11, 2022, 11:55am UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/7 "2022-05-11T11:55:44Z")

</div>

Wow! Good catch @richards !

> [@richards](#):
>
> If doesn’t seem to affect the actual code when looking at the preview in chrome

Agreed. But somehow, preview (and export) doesn’t behave exactly the same way with Safari or Firefox than Chromium-based browsers. That’s what made me discover that bug (plus the fact I designed a gallery with UI scaled at 110%).

@martin I can confirm the bug does occur with UI scaled at the following values:

- 60%
- 70%
- 85%
- 95%
- 110%
- 120%
- 135%
- 145%
- 160%
- 170%
- 185%
- 195%

---

<div class="post-metadata">

**Author:** ![maclm](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@maclm](https://forum.bootstrapstudio.io/u/maclm)\
**Post date:** [May 11, 2022, 12:02pm UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/8 "2022-05-11T12:02:23Z")

</div>

And while we’re at it, for sake of completeness, the bug also exists in BSS 6.0.0 and 5.9.3.  
I didn’t notice the UI wasn’t at the same scale when I reported yesterday.

---

<div class="post-metadata">

**Author:** ![maclm](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@maclm](https://forum.bootstrapstudio.io/u/maclm)\
**Post date:** [May 11, 2022, 2:30pm UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/9 "2022-05-11T14:30:03Z")

</div>

I can’t test extensively right now, but I just noticed that, with UI scaled at 90%, the 992 breakpoint is working, but not the 768.

In the meantime, I’ll stick to UI at 100%.

BSS 6.0.1

---

<div class="post-metadata">

**Author:** ![martin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/martin/32/3_2.png) [@martin](https://forum.bootstrapstudio.io/u/martin)\
**Post date:** [May 13, 2022, 11:17am UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/10 "2022-05-13T11:17:39Z")

</div>

Unfortunately there is not much we can do to fix this. Bootstrap Studio is built using Electron, which uses Chromium. So UI scaling will always lead to imprecise breakpoint calculations. Resizing the stage by hand instead of clicking the breakpoint buttons is the easiest workaround to make sure that the media queries apply.

---

<div class="post-metadata">

**Author:** ![maclm](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/m/258eb7/32.png) [@maclm](https://forum.bootstrapstudio.io/u/maclm)\
**Post date:** [May 13, 2022, 11:57am UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/11 "2022-05-13T11:57:40Z")

</div>

I get that. So far, everything seems fine with UI scaled at 100%. So with manual resizing, that makes two workarounds.

That said, should we give up completely on UI scaling?  
It’s a nice feature, but given it is kind of broken…  
Or should we make all users aware of that limitation? Perhaps a warning that pops-up when one scale the UI for the first time.

Food for thoughts.

---

<div class="post-metadata">

**Author:** ![printninja](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/printninja/32/481_2.png) [@printninja](https://forum.bootstrapstudio.io/u/printninja)\
**Post date:** [May 20, 2022, 8:02am UTC](https://forum.bootstrapstudio.io/t/992-breakpoint-offest/8791/12 "2022-05-20T08:02:28Z")

</div>

I discovered this quirk quite some time ago. If the UI is set at anything other than 100%, breakpoints in the BSS preview window do not “break” at the correct pixel size.
