Open sebojolais opened 6 days ago
In the board view, the left panel shows the pages of the current document. Each page has 2 buttons to delete or duplicate it. These 2 buttons do not work in my side.
board view
left panel
delete
duplicate
to reproduce :
dev
-> Solution and root cause: Since this commit : https://github.com/OpenBoard-org/OpenBoard/commit/4730dc2cdfe1fae943a820cae201a60c3741d494 The thumbnail is filled by rescaled pixmaps. So it seems that the buttons are also rescaled and the hard coded size of the icon (32) are not suitable.
The scale applied is :
1 / transform().m11()
So if we multiply the mouse coordinate by the inverse of this scale, it will work.
In the
board view
, theleft panel
shows the pages of the current document. Each page has 2 buttons todelete
orduplicate
it. These 2 buttons do not work in my side.to reproduce :
dev
branch-> Solution and root cause: Since this commit : https://github.com/OpenBoard-org/OpenBoard/commit/4730dc2cdfe1fae943a820cae201a60c3741d494 The thumbnail is filled by rescaled pixmaps. So it seems that the buttons are also rescaled and the hard coded size of the icon (32) are not suitable.
The scale applied is :
So if we multiply the mouse coordinate by the inverse of this scale, it will work.