You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like width of SimpleColorChooser is calculated not properly.
It doesn't take into an account border width.
Code should add border.width*2.
Please also notice that 'border' option is not supported. I've created separate issue for this.
// Figure out the cell dimensions
options.totalWidth = options.columns \* (options.cellWidth + (2 \* options.cellMargin));
// Figure out the cell dimensions
options.totalWidth = options.columns \* (options.cellWidth + (2 \* options.cellMargin)) + border.width*2;
This problem shows up when bootstrap css is used.
Attached screen shot.
The text was updated successfully, but these errors were encountered:
I finally figured out this problem while I was in there fixing something else: the expected box model is content-box. If you're using border-box, you can pass in content-box in the chooserCSS:
chooserCSS: { 'box-sizing': 'content-box' }
or add it to the plugin yourself in the options.chooserCSS = $.extend() block (as I did in my fork).
Looks like width of SimpleColorChooser is calculated not properly.
// Figure out the cell dimensions options.totalWidth = options.columns \* (options.cellWidth + (2 \* options.cellMargin)); // Figure out the cell dimensions options.totalWidth = options.columns \* (options.cellWidth + (2 \* options.cellMargin)) + border.width*2;It doesn't take into an account border width.
Code should add border.width*2.
Please also notice that 'border' option is not supported. I've created separate issue for this.
This problem shows up when bootstrap css is used.
Attached screen shot.
The text was updated successfully, but these errors were encountered: