[Phpmyadmin-devel] Dynamically increasing Create table dialog's size

Rouslan Placella rouslan at placella.com
Tue Oct 11 00:55:03 CEST 2011


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.

> 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.

Let's see what others have to say, but personally I'd like to see that
changeset reverted.

Rouslan





More information about the Developers mailing list