Position Pop Up

QuestionsPosition Pop Up
Gary Brett asked 5 years ago

Hi Abu, I have a page with a grid at top and normal page content below, when clicking on the advanced search option opens approx 200px below the grid, I guess its trying to load in center of page?

Is there an option to position this, I tried $opt["form"]["position"] = "center"; with no success?

Thanks

4 Answers
Gary Brett answered 5 years ago

And also tried this;
$grid["search_options"] = array("recreateForm" => true, "closeAfterEdit"=>true, 'width'=>'420', 'top'=>'200', 'left'=>'200');

Abu Ghufran answered 5 years ago

Try replacing form position to static:

$grid["form"]["position"] = "static";

After that 'width'=>'420', 'top'=>'200', 'left'=>'200' options work.

Gary Brett answered 5 years ago

Hi Abu, think I've resolved this now, my pages load in an iframe that was set too large? I have now coded the iframe to resize based on content loaded inside.

Would still like to know if its possible to position modal though?

Thanks

Abu Ghufran answered 5 years ago

Yes, by above setting of top/left … you can position it with defined offset (not always center).
If you omit top/left and set form position to static, then dialog will come in top left of grid.

Your Answer

20 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?