Color palette window cut off
Device - Asus Max Pro M1 Android version - Pie
Right side of the window is cut off; it's like an OCD thing for me Lol. A fix would be nice

Hello,
Is this still broken?
I suspect an issue within the system, as it's been working on all other devices AFAIK. I'm hopeful an update fixed this?
A quick look at the code did not yield anything suspicious:
ColorPreference.this.palette.init(ColorPickerDialog.SIZE_SMALL, (view.getWidth() - (swatchSize * 2 / 3)) / swatchSize, ColorPreference.this);
I have a similar problem on the latest KISS version, the palette is shifted a bit

Interesting, it only started happening in this version?
Somewhere between 3.11.5 and the latest version.
Looks like the layout has to make more than one measure/layout pass, and the pieces of layout have zero dimensions after the first pass. We should try to remove OnGlobalLayoutListener only when we have positive dimensions. Something like this:
if (palette.getMeasuredWidth() > 0) {
Layout.getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
Thanks @TBog -- do you think you can send a PR?
I can do the code change, but I'm not sure how to test and I've never deal with LayoutObservers before.
Can't reproduce + inactivity, closing.