Reduce polling server push delay for faster background rendering.
Set progress dialog to center of screen.
This commit is contained in:
parent
0fd55b821f
commit
7a6869a0d7
|
@ -52,18 +52,17 @@
|
||||||
<device-config>
|
<device-config>
|
||||||
<device-type>ajax</device-type>
|
<device-type>ajax</device-type>
|
||||||
<server-push-class>org.zkoss.zk.ui.impl.PollingServerPush</server-push-class>
|
<server-push-class>org.zkoss.zk.ui.impl.PollingServerPush</server-push-class>
|
||||||
<!-- Configure the progress message to show in the center -->
|
|
||||||
<embed>
|
|
||||||
<![CDATA[<script type="text/javascript">
|
|
||||||
AU_progressbar=function(id,msg){Boot_progressbox(id,msg,"45%","45%",true,false);};
|
|
||||||
</script>]]>
|
|
||||||
</embed>
|
|
||||||
</device-config>
|
</device-config>
|
||||||
|
|
||||||
<system-config>
|
<system-config>
|
||||||
<disable-event-thread>false</disable-event-thread>
|
<disable-event-thread>false</disable-event-thread>
|
||||||
</system-config>
|
</system-config>
|
||||||
|
|
||||||
|
<!-- Configure the progress message to show in the center -->
|
||||||
|
<library-property>
|
||||||
|
<name>org.zkoss.zul.progressbox.position</name>
|
||||||
|
<value>center</value>
|
||||||
|
</library-property>
|
||||||
<library-property>
|
<library-property>
|
||||||
<name>org.zkoss.zul.Button.mold</name>
|
<name>org.zkoss.zul.Button.mold</name>
|
||||||
<value>trendy</value>
|
<value>trendy</value>
|
||||||
|
@ -88,5 +87,18 @@
|
||||||
<name>org.zkoss.zul.theme.fontSizeMS
|
<name>org.zkoss.zul.theme.fontSizeMS
|
||||||
</name>
|
</name>
|
||||||
<value>11px</value>
|
<value>11px</value>
|
||||||
</library-property>
|
</library-property>
|
||||||
|
|
||||||
|
<preference>
|
||||||
|
<name>PollingServerPush.delay.min</name>
|
||||||
|
<value>200</value>
|
||||||
|
</preference>
|
||||||
|
<preference>
|
||||||
|
<name>PollingServerPush.delay.max</name>
|
||||||
|
<value>10000</value>
|
||||||
|
</preference>
|
||||||
|
<preference>
|
||||||
|
<name>PollingServerPush.delay.factor</name>
|
||||||
|
<value>1</value>
|
||||||
|
</preference>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
Loading…
Reference in New Issue