RFR: 6677: search to highlight cells in the flame view

Miroslav Wengner mwengner at openjdk.java.net
Thu Feb 6 10:58:51 UTC 2020


On Wed, 5 Feb 2020 20:35:11 GMT, Alex Macdonald <aptmac at openjdk.org> wrote:

>> ticket: https://bugs.openjdk.java.net/browse/JMC-6677
> 
> application/org.openjdk.jmc.flightrecorder.flameview/src/main/resources/page.template line 13:
> 
>> 12: 
>> 13: <body>
>> 14: 	<div id="search" align="right">
> 
> out of curiosity, why the change from using `onresize` to adding a listener to the browser?

This was another tricky part, when the swt.browser is created it gets the flameGraph default size. Even when you resize the jmc window the size is not updated. You need to check the event on the Browser object and force the update by as I'm doing with resizeFlameGraph.

-------------

PR: https://git.openjdk.java.net/jmc/pull/45


More information about the jmc-dev mailing list