Premium support for our pure JavaScript UI components


Post by m.ferette »

Hello,

Context: Vanilla JS v5.0.0

When using a custom scaling display on my OS, the 'showBy' method of the Tooltip class does not work and nothing is shown.

Here is a sample code to reproduce the issue

new Button({
	appendTo : targetElement,
	text     : 'Click me',
	onAction : function(mEvent) {
		new Tooltip({
			html: 'Tooltip text',
			modal: true,
			closable: true
		}).showBy({
			target: mEvent.source,
			anchor: true,
			align: "b100-t100"
		});
	}
});

On a screen with a 1920x1080 resolution.
If you run the above code with the default recommended scaling(100%) scaling, the tooltip is shown.
If you switch your display to a 120% custom scaling, the tooltip is not shown.

Can you please have a look and solve this?

Thanks.
Best regards,


Post by tasnim »

Hi,
Reproduced the bug. We'll investigate it, Here is the ticket https://github.com/bryntum/support/issues/4444
Thank you for your report.

Best regards,
Tasnim


Post by mats »

Try as a workaround:

			target: mEvent.source.element,

Post by Animal »

I'm concerned about performance degradation.

Every click of the button you create a brand new Tooltip instance? And then it hides, and the next click, another new one is created and so so? Isn't that a bit wasteful of resources?


Post Reply