The area that changes mouse cursor for FormItemIcon doesn't align correctly with icon's active area. When mouse cursor is approaching the icon I can interact with it even before the cursor's image is replaced with the correct one.
Demo (animated GIF):
![icon-active-area.gif Click image for larger version Name: icon-active-area.gif Views: 0 Size: 4.7 KB ID: 272135](filedata/fetch?id=272135&d=1712772220)
Cursor goes right to left, when icon is replaced with its "hover" variant the mouse cursor is still an arrow. I need to move it three more pixels to have it replaced with a pointer.
This can be reproduced at https://smartclient.com/smartclient-...sizeIncrease=2 (use Enterprise skin because it contains icons from code sample):
SmartClient v13.0p_2024-04-10/AllModules Development Only
Demo (animated GIF):
Cursor goes right to left, when icon is replaced with its "hover" variant the mouse cursor is still an arrow. I need to move it three more pixels to have it replaced with a pointer.
This can be reproduced at https://smartclient.com/smartclient-...sizeIncrease=2 (use Enterprise skin because it contains icons from code sample):
Code:
isc.DynamicForm.create({ width: 200, fields : [ {name: "test", title: "Test", icons: [{ inline: true, inlineIconAlign: "left", src: "[SKINIMG]headerIcons/plus.png", width: 15, height: 15, showOver: true, showOverWhen: "icon", prompt: "Prompt", click: () => { console.log(Math.random()) } }] } ] });
Comment