# Glitch when two buttons are in the same place

**URL:** https://forum.adalo.com/t/glitch-when-two-buttons-are-in-the-same-place/3887
**Category:** Get Help
**Created:** [September 8, 2020, 3:19pm UTC](https://forum.adalo.com/t/glitch-when-two-buttons-are-in-the-same-place/3887 "2020-09-08T15:19:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![francois.d](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@francois.d](https://forum.adalo.com/u/francois.d)
#### Post date: [September 8, 2020, 3:19pm UTC](https://forum.adalo.com/t/glitch-when-two-buttons-are-in-the-same-place/3887/1 "2020-09-08T15:19:14Z")

</div>

Hey!

I have two buttons:

- a grey one when the image is not uploaded (empty)
- a blue one when the image is uploaded (not empty)

They are in the same place. But when I upload the image, the blue one move to the right.

Bug?

 ![Untitled](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/f951352d13d34961d71fdf8cb7199aec6815053a.png)

[https://drive.google.com/file/d/1YBGt0HX7dXHAysI1zUAp9toe9GJvTHcM/view?usp=sharing](https://drive.google.com/file/d/1YBGt0HX7dXHAysI1zUAp9toe9GJvTHcM/view?usp=sharing)

---

<div class="post-metadata">

### Author: ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)
#### Post date: [September 8, 2020, 3:31pm UTC](https://forum.adalo.com/t/glitch-when-two-buttons-are-in-the-same-place/3887/2 "2020-09-08T15:31:43Z")

</div>

Bonjour @francois.d,

For me in such scenarios it worked best when I place one component _right above_ the other.

But please note, placing 2 components and making them conditionally visible isn’t easy due to layout specifics and always require a bit of work.

Cordialement, Victor

---

<div class="post-metadata">

### Author: ![francois.d](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@francois.d](https://forum.adalo.com/u/francois.d)
#### Post date: [September 8, 2020, 3:49pm UTC](https://forum.adalo.com/t/glitch-when-two-buttons-are-in-the-same-place/3887/3 "2020-09-08T15:49:32Z")

</div>

Thanks @Victor. The button are above one another. That’s the issue, the button move to the right…  
I don’t understand what you mean about the visibility. You don’t suggest to do what I do?

---

<div class="post-metadata">

### Author: ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)
#### Post date: [September 8, 2020, 4:16pm UTC](https://forum.adalo.com/t/glitch-when-two-buttons-are-in-the-same-place/3887/4 "2020-09-08T16:16:18Z")

</div>

Hi @francois.d,

To be honest, keeping proper layout when you have components with “sometimes visible” properties (showing and hiding), and if you want these components to “replace” each other, is quite difficult.  
For example, in the almost empty screen this is how your button example worked for me:

 ![Screenshot 2020-09-08 at 19.04.17](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/5/548d12d3952d0fcfd56bc905a6f4349dc3fcd538.png)

The problem here is that in the _other_ screen this layout most probably **will not** work. So it is always trial and error before you find the suitable layout.

So I don’t know a universal solution, sorry. ☹

As for me, I have decided to avoid UX designs which needs to change the color of the same element ☹

---

<div class="post-metadata">

### Author: ![francois.d](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@francois.d](https://forum.adalo.com/u/francois.d)
#### Post date: [September 8, 2020, 4:23pm UTC](https://forum.adalo.com/t/glitch-when-two-buttons-are-in-the-same-place/3887/5 "2020-09-08T16:23:22Z")

</div>

It worked! I didn’t understand the first time, I placed one component **right above** the other 😛

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)
#### Post date: [September 18, 2020, 4:23pm UTC](https://forum.adalo.com/t/glitch-when-two-buttons-are-in-the-same-place/3887/6 "2020-09-18T16:23:27Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
