Skip to content

Commit 7c3e70b

Browse files
committed
Fixed wrong resized image tag.
1 parent 520cf19 commit 7c3e70b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/webstreamer.pas

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,9 +1158,19 @@ procedure twebstreamerfo.onchangeshowwave(const Sender: TObject);
11581158
bounds_cymin := 0;
11591159

11601160
ratio := fontheight / 12;
1161+
1162+
historyfn.top := 0;
1163+
historyfn.invalidatewidget;
1164+
infopanel.top := historyfn.height;
1165+
PimgPreview.top := infopanel.top;
1166+
1167+
panelcommand.top := infopanel.bottom;
1168+
1169+
11611170

11621171
if showwave.Value then
11631172
begin
1173+
panelwave.top := panelcommand.bottom;
11641174
panelwave.Visible := True;
11651175
if showgrid.Value then
11661176
begin
@@ -1980,6 +1990,8 @@ procedure twebstreamerfo.onclickimage(const Sender: twidget; var ainfo: mouseeve
19801990
bounds_cymin := 0;
19811991
bounds_cxmax := 0;
19821992
bounds_cymax := 0;
1993+
1994+
historyfn.top := 0;
19831995

19841996
left := rectori.cx;
19851997
top := rectori.cy;
@@ -2012,9 +2024,12 @@ procedure twebstreamerfo.onclickimage(const Sender: twidget; var ainfo: mouseeve
20122024
end;
20132025

20142026
tmainmenu1.menu.Visible := True;
2027+
historyfn.top := 0;
2028+
infopanel.top := historyfn.bottom;
20152029
PimgPreview.top := infopanel.top;
20162030
PimgPreview.Height := infopanel.Height;
20172031
PimgPreview.Width := infopanel.Height;
2032+
panelcommand.top := infopanel.bottom;
20182033
PimgPreview.tag := 0;
20192034
end;
20202035

0 commit comments

Comments
 (0)