[Phpmyadmin-devel] Dynamically increasing Create table dialog's size
Piotr Przybylski
piotr.prz at gmail.com
Tue Oct 11 01:57:06 CEST 2011
2011/10/11 Rouslan Placella <rouslan at placella.com>:
> On Mon, 2011-10-10 at 22:42 +0200, Piotr Przybylski wrote:
>> It still caused scrollbars to appear, so I tried to change Marc's
>> approach - now window's scrollbars should be inactive, only dialog's
>> content should have them [1]. While at it, I also upgraded jQuery UI
>> to the newest stable version [2].
>
> I'm not convinced that this is better. Try the following scenario:
> * Open a somewhat small browser window.
> * Click Create table.
> * Maximise the browser window.
> The dialog remains the same size, is padded with a lot of white space
> and there is no way to resize it, so the user has to close and reopen
> it. Same goes for making the browser window smaller after opening the
> dialog: you can't resize it, so you end up with two sets of scrollbars
> anyway.
What browser are you using? There is a callback that should be
reacting to window's resize.
>> I hope I didn't break anything in the process, and that new dialog works better.
>>
>> [1] http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin;a=commitdiff;h=d424a797d5dd9e25a3c4a0923d45efdcf9005981
>> [2] http://phpmyadmin.git.sourceforge.net/git/gitweb.cgi?p=phpmyadmin/phpmyadmin;a=commitdiff;h=ac365e0262fa2323dc830bb563e8e97de3694781
>
> Also I'm not sure why you committed the following:
>
> --- a/js/functions.js
> +++ b/js/functions.js
> @@ -1433,6 +1433,8 @@ function PMA_ajaxRemoveMessage($this_msgbox)
> // due to a bug in qtip's implementation we can
> // only hide it without throwing JS errors.
> $this_msgbox.qtip('hide');
> + } else {
> + $this_msgbox.remove();
> }
> }
> }
>
> This change looks irrelevant to your work and besides the messages are
> destroyed at line 1388 via a callback, so this change may cause
> conflicts though I haven't verified this.
Unless I misunderstood something this should destroy message
completely, and I needed this change because the way in which I am
hiding page's content makes recent AJAX message to come back when I
close create table dialog. It's in the same commit as dialog's change
for easy rollback.
--
Piotr Przybylski
More information about the Developers
mailing list