NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Niels Larsen on July 10, 2019, 10:07:37 PM
-
Hi Bruce
In a map field under data and form, whether I choose popup or not, it's always popup.
Is it a template bug or should it be like that?
Regards Niels
-
I'd have to go check, but I think a Map form is always a popup.
cheers
Bruce
-
It actually makes good sense and I can also live with that.
But my challenge is to get my popup form to fill 100% in "mobile" mode. I can't figure out where to place my class on the form (on the template). If I set the width to blank, the template sets it to 150px. Nor can I see that the form has an id (far enough out) to style the form.
Does it make sense or is it just a nonsense?
Regards Niels
-
>> my challenge is to get my popup form to fill 100% in "mobile" mode.
untested, but on the right track I think,
a) add a custom class to the form
' nl-width'
put it on the "outermost" css of the form (ie Form Div)
b) in your custom CSS
.nl-width{width:100%}
@media screen and (min-width: 1025px){
.nl-width{width:50%}
}
cheers
Bruce
-
Unfortunately, that doesn't work.
I can't get far enough out.
And the DIV I have to style has no ID. I have added an image and marked the DIV with yellow. Can you make it possible to add a DIV or an ID?
It would be a big help.
Regards Niels
-
That's a dialog - so you set the width on the Form template, Layout tab.
something like
'100%'
cheers
Bruce
-
I know, but then I can't control it by css. I only want to have width:100% in "mobile mode" and width:50% in "desktop mode".
So I need an ID or to insert a class in the most outer div in the dialog.
-
noted
-
I have fixed it with jQuery, so it is not urgent to find a solution.