# Disable auto px units

**URL:** <https://forum.pinegrow.com/t/disable-auto-px-units/8357>\
**Category:** Questions\
**Tags:** bug, feature-request\
**Created:** [September 11, 2023, 12:02pm UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357 "2023-09-11T12:02:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikhen](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rikhen/32/5799_2.png) [@rikhen](https://forum.pinegrow.com/u/rikhen)\
**Post date:** [September 11, 2023, 12:02pm UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/1 "2023-09-11T12:02:20Z")

</div>

I am working a lot with relative units like %, rem and em and it annoys me that if you enter a value, Pinegrow automatically adds px. So you have to click in the field again, select and remove the whole value and enter the desired value + unit again. You can imagine how many extra clicks this workaround creates…

The only alternative I have found is to avoid the panel at all and use the code editor.

Is it possible to deactivate this function completely or change the default behaviour? If not, having some kind of auto-detection when entering the value + unit would be awesome!

Thanks

---

<div class="post-metadata">

**Author:** ![Plunky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/plunky/32/5705_2.png) [@Plunky](https://forum.pinegrow.com/u/Plunky)\
**Post date:** [September 11, 2023, 9:18pm UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/2 "2023-09-11T21:18:21Z")

</div>

I haven’t used Pinegrow in a while, but if I remember correctly you just type in the desired unit of measure when you enter a value.  
Instead of typing 1 and hitting enter, type 1em (for example) and hit enter

---

<div class="post-metadata">

**Author:** ![rikhen](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rikhen/32/5799_2.png) [@rikhen](https://forum.pinegrow.com/u/rikhen)\
**Post date:** [September 12, 2023, 8:20am UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/3 "2023-09-12T08:20:42Z")

</div>

@Plunky unfortunately, that doesn’t work. I don’t even get to enter the second digit before Pinegrow automatically adds the unit. Maybe this short screen recording shows it better:

---

<div class="post-metadata">

**Author:** ![tytusie](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/tytusie/32/6914_2.png) [@tytusie](https://forum.pinegrow.com/u/tytusie)\
**Post date:** [September 13, 2023, 9:26am UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/4 "2023-09-13T09:26:47Z")

</div>

I agree - that behaviour it’s pretty annoying…

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [September 14, 2023, 3:48am UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/5 "2023-09-14T03:48:25Z")

</div>

I’ve seen this behavior from time to time when I have VSCode launched and Pinegrow and VSC are stepping on each other. Usually, restarting Pinegrow fixes it. I haven’t been able to narrow down a way to reproduce it, unfortunately.

---

<div class="post-metadata">

**Author:** ![rikhen](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rikhen/32/5799_2.png) [@rikhen](https://forum.pinegrow.com/u/rikhen)\
**Post date:** [September 14, 2023, 9:19am UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/6 "2023-09-14T09:19:52Z")

</div>

Thanks @adamslowe I’ll give it a try. However, when I recoded the video, I think I did not have VS Code open.

---

<div class="post-metadata">

**Author:** ![fakesamgregory](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/fakesamgregory/32/3903_2.png) [@fakesamgregory](https://forum.pinegrow.com/u/fakesamgregory)\
**Post date:** [September 15, 2023, 7:30am UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/7 "2023-09-15T07:30:21Z")

</div>

I encounter this bug from time to time.

I think what you’re asking for is this bug of Pinegrow entering the value automatically after on its own accord, otherwise my question would be “what would you _expect_ to happen if, for example, you typed 1, 0, 0, Enter? Because something needs to happen when you press enter. If changing the default unit is what you’re after then you’re still left with typing 1 and Pinegrow automatically inserting % or whatever you choose the value to be.

Have I got that right?

---

<div class="post-metadata">

**Author:** ![rikhen](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rikhen/32/5799_2.png) [@rikhen](https://forum.pinegrow.com/u/rikhen)\
**Post date:** [September 15, 2023, 8:35am UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/8 "2023-09-15T08:35:44Z")

</div>

Hi @fakesamgregory,

Thanks for asking. I see two issues here:

First of all, the annoying bug of only being able to insert one digit before Pinegrow auto-adds the unit.

Secondly my feature request: I don’t mind having px as the default unit. But what I am used to from other builders and what I was expecting from Pinegrow is that I can enter a value + unit and the editor automatically changes from px to whatever I enter. So for example:

- 20 → adds 20px
- 20rem → adds 20rem
- rem → changes unit to rem

---

<div class="post-metadata">

**Author:** ![fakesamgregory](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/fakesamgregory/32/3903_2.png) [@fakesamgregory](https://forum.pinegrow.com/u/fakesamgregory)\
**Post date:** [September 15, 2023, 8:47am UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/9 "2023-09-15T08:47:44Z")

</div>

I agree this is exactly what I expect. There’s definitely a bug here.

I face the first bug on occasion but not the second unfortunately.

---

<div class="post-metadata">

**Author:** ![rikhen](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rikhen/32/5799_2.png) [@rikhen](https://forum.pinegrow.com/u/rikhen)\
**Post date:** [September 26, 2023, 10:25pm UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/10 "2023-09-26T22:25:24Z")

</div>

Hi guys,

After updating to Pinegrow v7.71 at least the annoying bug seems to be fixed! 🙂

---

<div class="post-metadata">

**Author:** ![iamrobbie](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/iamrobbie/32/4694_2.png) [@iamrobbie](https://forum.pinegrow.com/u/iamrobbie)\
**Post date:** [September 27, 2023, 12:45am UTC](https://forum.pinegrow.com/t/disable-auto-px-units/8357/11 "2023-09-27T00:45:09Z")

</div>

Yes! I was having the same issue periodically, but it seem to be resolved (hopefully for good).
