Issue 126542 - UI glitches while trying to add or remove colour from the option menu's colour section
Summary: UI glitches while trying to add or remove colour from the option menu's colou...
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: 4.1.1
Hardware: All All
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
: 127425 (view as issue list)
Depends on:
Blocks:
 
Reported: 2015-09-21 01:22 UTC by Brent Liu
Modified: 2022-05-31 21:10 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.1.12
Developer Difficulty: ---


Attachments
It shifted! (21.93 KB, image/png)
2015-09-21 01:22 UTC, Brent Liu
no flags Details
Before deleting any colors (152.45 KB, image/png)
2015-09-22 22:42 UTC, bbusick2012
no flags Details
After deleting 1 color (148.60 KB, image/png)
2015-09-22 22:47 UTC, bbusick2012
no flags Details
After deleting 20 colors (115.39 KB, image/png)
2015-09-22 22:50 UTC, bbusick2012
no flags Details
after del 30 colors (114.97 KB, image/png)
2015-09-22 22:52 UTC, bbusick2012
no flags Details
After 40 (110.69 KB, image/png)
2015-09-22 22:55 UTC, bbusick2012
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Brent Liu 2015-09-21 01:22:28 UTC
Created attachment 84925 [details]
It shifted!

I was trying to delete the default colour set and add in my own set of colours where I noticed this issue.

Removing 1 or 2 colours seems to be working alright.

But continuously deleting colours by clicking, and using Keyboard to press Y for confirming caused the UI of the colour swatch to shift to the top left.  In the end most of the colours wasn't visible anymore.



And, another issue I'm having is that each colour has to have a game.  I wish to just add colours without any names.  Is that possible?




I took a screenshot where you can see it shifted position quite a bit just by deleting about 20 to 30 colours
Comment 1 bbusick2012 2015-09-22 22:42:28 UTC
Created attachment 84935 [details]
Before deleting any colors

You can compare this to the error to see the difference
Comment 2 bbusick2012 2015-09-22 22:47:52 UTC
Created attachment 84938 [details]
After deleting 1 color

I deleted the top left yellow box. The difference when you only delete one color is noticeable. You can see that when I deleted the yellow, the orange that was next to it got moved to the end and the current color (Red) has a correct preview but the name is now orange. If you click on the orange box you will see that the color name is correct but the preview is for the dark green next to it.
Comment 3 bbusick2012 2015-09-22 22:50:50 UTC
Created attachment 84939 [details]
After deleting 20 colors

You can see the box has moved off the screen and some colors aren't visible. Also there are now even more messed up color names/previews (found that when you hover with the mouse the names are still correct). You can still access the colors with the arrow keys.
Comment 4 bbusick2012 2015-09-22 22:52:56 UTC
Created attachment 84940 [details]
after del 30 colors

Once you delete 30 the boxes get very blurry but you can still access all of them with the arrow keys or mouse.
Comment 5 bbusick2012 2015-09-22 22:55:38 UTC
Created attachment 84941 [details]
After 40

After deleting 40 some get so messed up that you can't select them or delete them. The circled ones are the ones I could not click. I didn't get a final shot but if you keep deleting almost all the colors the box goes completely off the screen.
Comment 6 bbusick2012 2015-09-22 22:59:04 UTC
I was able to replicate this and have provided screenshots of the issue
     1.	Open calc
2.	Go to the Tools menu then Select Options
3.	In the Options side bar under OpenOffice select Colors
4.	Select a color from the Color Table
5.	Click Delete then click yes
6.	The color table box will shift to the left
7.	If you continue selecting colors and deleting them it will continue to shift until it’s outside of view

Many things happen when you delete a color:
1.	The Color Table shifts a few pixels to the left and sometimes resizes (see attached Before and after 1)
2.	Whatever color you select the next color in the list will be moved to the end of the list
3.	The color name and the two preview boxes will be switched (whatever is moved to the end of the list will have the wrong Color name but the correct preview and whatever is next to be deleted will have the color name of the last color deleted) You can see this happen between the attached before error and after 1. Before-error is the normal state but you can see in after I delete the yellow box in the top left and you see the orange move to the end of the list. 
The box starts getting shifted beyond view after deleting 20 colors in a row (see After 20). The more colors you delete after that the more it shifts over. If you get over 30 colors the boxes become blurry and then when you select a color (particularly the colors at the end of the list) the drop down menu and the color preview boxes will not reflect the correct colors (see After 30). If you delete over 40 boxes some of the colors become unreachable and there is no way to select them and the boxes look stacked on top of one another (see After 40). This happens whether you start from the beginning, middle, or end of the color list. Eventually the box goes completely off the screen and you can see it at all but you can see the colors in the drop down.
If you close the window and go into Tools->Options ->Colors again it resets the box and the colors are all aligned again, with your deleted ones still deleted. When I tried to switch between settings within the office Options window, it crashed the program. Also If I try to add or modify colors. I could only recreate the crash twice but it happened under different circumstances each time. After the crash all the original colors show up again with none deleted.
Comment 7 bbusick2012 2015-09-22 22:59:15 UTC
I was able to replicate this and have provided screenshots of the issue
     1.	Open calc
2.	Go to the Tools menu then Select Options
3.	In the Options side bar under OpenOffice select Colors
4.	Select a color from the Color Table
5.	Click Delete then click yes
6.	The color table box will shift to the left
7.	If you continue selecting colors and deleting them it will continue to shift until it’s outside of view

Many things happen when you delete a color:
1.	The Color Table shifts a few pixels to the left and sometimes resizes (see attached Before and after 1)
2.	Whatever color you select the next color in the list will be moved to the end of the list
3.	The color name and the two preview boxes will be switched (whatever is moved to the end of the list will have the wrong Color name but the correct preview and whatever is next to be deleted will have the color name of the last color deleted) You can see this happen between the attached before error and after 1. Before-error is the normal state but you can see in after I delete the yellow box in the top left and you see the orange move to the end of the list. 
The box starts getting shifted beyond view after deleting 20 colors in a row (see After 20). The more colors you delete after that the more it shifts over. If you get over 30 colors the boxes become blurry and then when you select a color (particularly the colors at the end of the list) the drop down menu and the color preview boxes will not reflect the correct colors (see After 30). If you delete over 40 boxes some of the colors become unreachable and there is no way to select them and the boxes look stacked on top of one another (see After 40). This happens whether you start from the beginning, middle, or end of the color list. Eventually the box goes completely off the screen and you can see it at all but you can see the colors in the drop down.
If you close the window and go into Tools->Options ->Colors again it resets the box and the colors are all aligned again, with your deleted ones still deleted. When I tried to switch between settings within the office Options window, it crashed the program. Also If I try to add or modify colors. I could only recreate the crash twice but it happened under different circumstances each time. After the crash all the original colors show up again with none deleted.
Comment 8 Marcus 2022-05-31 17:14:27 UTC
*** Issue 127425 has been marked as a duplicate of this issue. ***
Comment 9 Matthias Seidel 2022-05-31 21:10:05 UTC
Confirmed on Ubuntu with AOO 4.1.12