org.zkoss.zul.tablet.meta.viewport.disabled"
From Documentation
m (Created page with "{{ZKConfigurationReferencePageHeader}} '''Property:''' org.zkoss.zul.tablet.meta.viewport.disabled Default: false [Since 6.5.0] Specifies whether to disable the viewport con...") |
m |
||
Line 8: | Line 8: | ||
Specifies whether to disable the viewport content or not on tablet device. It is enabled by default. | Specifies whether to disable the viewport content or not on tablet device. It is enabled by default. | ||
− | If you prefer to configure a particular viewport of | + | By default, ZK will generate the following viewport content on tablet device: |
+ | <source lang="html"> | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" > | ||
+ | </source> | ||
+ | If you set this library property to true, the above viewport content will be discard. | ||
+ | |||
+ | |||
+ | If you prefer to configure a particular viewport of specific page, you could specify it as follows. | ||
<source lang="xml"> | <source lang="xml"> | ||
<?page viewport="width=device-width,initial-scale=1.0,maximum-scale=5.0"?> | <?page viewport="width=device-width,initial-scale=1.0,maximum-scale=5.0"?> |
Revision as of 07:38, 24 September 2014
Property:
org.zkoss.zul.tablet.meta.viewport.disabled
Default: false [Since 6.5.0]
Specifies whether to disable the viewport content or not on tablet device. It is enabled by default.
By default, ZK will generate the following viewport content on tablet device:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
If you set this library property to true, the above viewport content will be discard.
If you prefer to configure a particular viewport of specific page, you could specify it as follows.
<?page viewport="width=device-width,initial-scale=1.0,maximum-scale=5.0"?>
Version History
Version | Date | Content |
---|---|---|
6.5.0 | September 2012 | Viewport should enabled on tablet device. |