After progrmatically minimizing CPanel button doesnt update

 

Hello, calling ExtDialog.Minimize() function after an event.
The button doesn't update for the maximization and i have to double click to maximize it back. Is there any way to update it in auto way?


I have called

   ExtDialog.Minimize();



Attaching screenshot of the issue

Files:
EXAMPLE.png  9 kb
Reason: