-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Navigator tabs ButtonSpecs on Navigator tabs are cut off #1843
Comments
Hi @MattH-Work, Thanks for posting. Could you please add a simple project that shows the error? Thanks. |
How would I best go about uploading the solution? it zips to 26mb as it uses both Krypton.toolkit.lite & Krypton.Navigator.Lite, 25 is the git limit |
Is it possible to upload it to DropBox. or if you have Windows 11 24h2 it is possible to compress to |
Now that's too obvious! ( was just wondering if there was any GitHub magic I wasn't aware of ) Here is a link to download a small example of the issue |
Hi @Smurf-IV, @PWagner1, Been doing some testing on this; All styles should be drawn in a rectangle of the same size. B849-UnboundCellCannotSetValue_vhtoT0Kaqu.mp4 |
Hi @giduac Is it possible to add a 'height' property to button specs? |
@giduac try "playing with these settings" in each of the themes: Also a lot of these will be "Demangled" if I manage to get #1807 done as it is getting quite involved, and will make some of these setting obsolete |
This is the problem (-1) at least for list item. That would solve this problem. |
This looks stable even when certain styles use different paddings. What do you think of a size property as a new feature for a ButtonSpec which is handled like this: /// <summary>
/// Gets the content image.
/// </summary>
/// <param name="state">The state for which the image is needed.</param>
/// <returns>Image value.</returns>
public Image? GetImage(PaletteState state)
{
// Get value from button spec passing inheritance redirector
var baseImage = ButtonSpec.GetImage(_redirector, state);
// Use the size property to resize the image to the requested size
if (baseImage is not null)
{
baseImage = new Bitmap(baseImage, ButtonSpec.Size);
}
// No need to perform scaling as it will be done @
// $\Standard-Toolkit\Source\Krypton Components\Krypton.Toolkit\Rendering\RenderStandard.cs
// line 5779: memento.Image = CommonHelper.ScaleImageForSizedDisplay(memento.Image, currentWidth, currentHeight);
return baseImage;
} |
Maybe just one padding for buttonspecs regardless of the style might be an option for the V100 embedded themes...? |
Not sure, As this will not then following the DPI size changing and might cause even more confusion ! |
OK then that passes. |
Looks much better! |
That was the intention :)..... |
Upgraded from 85.24.10.288 to 90.24.11.317, ButtonSpecs on Navigator tabs are cut off
Upper image shows 85.... ( desired ) result ( using a 16 x 16 image for the ButtonSpec)
Lower image shows 90..... ( erroneous ) result ( top row of image is cut, essentially 16 x 15 )
Both tabs are 25 high, nothing else changed during or after toolkit upgrade
The text was updated successfully, but these errors were encountered: