Open ljmill opened 2 years ago
Update: this is likely a spacing issue. Upon setting space-evenly to false and giving the widget more width, it renders as expected during updates and reloads.
However, it is still quite odd that reloading widgets 2 times consecutively would cause it to display accurately.
Checklist before submitting an issue
Description of the bug
The sizing of widgets becomes incorrect when certain actions occur. I have observed this to occur when:
It is important to note the following:
Reproducing the issue
Example 1: My widgets consist of a box containing horizontal boxes. These horizontal boxes contain overlays, each of which contain labels and a button. See image:![sample1](https://user-images.githubusercontent.com/97128740/174901489-bfe982a3-e8ea-435c-b914-ebde94e8245a.png)
For illustrative purposes, I will apply a background-color to the button class:![sample2](https://user-images.githubusercontent.com/97128740/174902413-5f74684e-376d-4cdb-aed8-7a8282a54f36.png)
Upon removing the background-color property from the scss file and saving the changes, the background-color persists and incorrectly alters the size of the button:![sample3](https://user-images.githubusercontent.com/97128740/174902615-27c72213-0ca3-471f-abcd-9a13bdf92db7.png)
Saving the file again to reload eww a second time (with zero changes made) causes the background-color to correctly be removed and the button sizes are returned to normal:![sample4](https://user-images.githubusercontent.com/97128740/174902789-f88256ce-da8e-4ca3-b21a-21e0880c8f5d.png)
Example 2:
My scss file imports color variables from another file for the purpose of dynamically updating the color of my widgets when I change my theme. Upon performing an eww reload to update the scss file after changes are made to the imported file, the widgets are cut off:![sample7](https://user-images.githubusercontent.com/97128740/174904419-f5ef23a3-fc7e-4642-bfe0-84ff741bdd09.png)
This remains until a second eww reload is performed--after which the widgets are displayed correctly.
Example 3:
A label which gets its text from a variable:![sample5](https://user-images.githubusercontent.com/97128740/174903196-e70d056e-877f-4346-be73-56c7dcea939c.png)
Upon changing the label/variable by invoking the eww update command on the variable, the size of the widget gets cut short:![sample6](https://user-images.githubusercontent.com/97128740/174903432-0baf053b-9bd9-45c4-8ff4-1d6b00b98dcc.png)
Unfortunately, I cannot simply perform subsequent eww reloads in this case because it would reset the state of the label.
Expected behaviour
Additional context
No response