Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Using body tag instead of div #2127

Open
mansurdegirmenci opened this issue Oct 12, 2021 · 1 comment
Open

[BUG] Using body tag instead of div #2127

mansurdegirmenci opened this issue Oct 12, 2021 · 1 comment

Comments

@mansurdegirmenci
Copy link
Contributor

I added my layout to "body" instead of creating a new div.

	//layout
		let main_layout = $('body').w2layout({
			name: 'main_layout',
			panels: [
				{
					type: 'top',
					size: 45,
					style: 'border: 0px; border-bottom: 1px solid silver; background-color: #fff; color: #555;',
					overflow: 'hidden'
				},
				{
					type: 'left',
					size: 35,
					resizable: false,
					style: 'border-right: 1px solid silver;'
				},
				{
					type: 'right',
					size: 35,
					resizable: false,
					style: 'border-left: 1px solid silver;'
				},
				{
					type: 'bottom',
					size: 25,
					resizable: false,
					style: 'border-top: 1px solid silver;'
				},
				{
					type: 'main',
					style: 'border:0px solid silver;'
				}
			]
		})

It works fine but there is a problem. If I open a popup and shrink or maximize the page, the popup takes up the whole page.

image

Animation

@mansurdegirmenci
Copy link
Contributor Author

mansurdegirmenci commented Oct 21, 2021

"form validate" errors do not appear.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant