[Gambas-user] Moving modal form if width derived from style.css
Benoît Minisini
g4mba5 at gmail.com
Fri Sep 24 12:32:27 CEST 2021
Le 24/09/2021 à 10:20, Safiur Rahman a écrit :
> Hi Benoît
>
> I want to move a modal form to top centre from its actual centre
> position. When I move the form as:
>
> Public Sub _new()
>
> Me.Move("calc(50vw - " & Me.Width & " * 0.5)", "0px")
>
> End
>
> The form moves to top centre if form width is specified in property.
> The form doesnot move to top centre if form width is derived from
> style.css using class property.
>
> How can I move the form to top centre if form width is derived from css?
> (Attached a project to replicate the problem)
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
Maybe you can try to add a ".move-to-top-center" class in your specific
css, define the class css properties with "!important", and add that
class to the form.
Tell me if it works.
--
Benoît Minisini
More information about the User
mailing list