0

zk datebox bug? please help...

asked 2010-05-24 22:55:37 +0800

lim gravatar image lim
72 2

this is a bug or not (i am using zk 5.0.2):
1. datebox height shrinking when i set the style="font-size: 8px"
2. when the datebox shrinked i set the height (i set height="120px" and "25px" ) but it doesnt effect

thank u

the source code is:
<zk>
<window width="100%" height="400px">
<datebox cols="20" mold="rounded"/>
<datebox format="yyyy-MM-dd" mold="rounded" style="font-size: 12px"/>
<datebox format="yyyy-MM-dd" />
<datebox format="yyyy-MM-dd" height="120px" style="font-size: 8px"/>
<datebox format="yyyy-MM-dd" height="25px" mold="rounded" style="font-size: 8px"/>
</window>
</zk>

delete flag offensive retag edit

10 Replies

Sort by ยป oldest newest

answered 2017-09-22 13:43:07 +0800

dineshchandrajoshi gravatar image dineshchandrajoshi
1

try css like

<style> .z-datebox-rounded-inp{ width:100px; height:24px; } </style>

link publish delete flag offensive edit

answered 2010-06-02 22:12:53 +0800

lim gravatar image lim
72 2

thank u for your attention... :)

link publish delete flag offensive edit

answered 2010-06-02 04:47:40 +0800

samchuang gravatar image samchuang
4084 4

you could compare zk demo and your project , find out where is the differentiation

link publish delete flag offensive edit

answered 2010-06-02 01:41:29 +0800

lim gravatar image lim
72 2

in my zkdemo the datebox's button height is balanced but not at my project.....i wonder why

link publish delete flag offensive edit

answered 2010-06-02 01:33:19 +0800

lim gravatar image lim
72 2

GREAT..i got it.
The secret is on the bar.zul. it use ThameImage class, onClick is the key to change the font size global
(except listbox with mold="select", its a bug i think. the font size is not change at all)

by the way it absolutely does not solve my problem.
Because the result is the same if i use style to change the font size. the date box's height (the button) is still not balanced

link publish delete flag offensive edit

answered 2010-06-01 05:09:17 +0800

samchuang gravatar image samchuang
4084 4

Hi

CacheableThemeProvider execute in the begining, that's why you need to define in the zk.xml

it use cookie to remember the theme style of the client side

after you looks at the source code, and fellow the Theme Provider smalltalk I post above

link publish delete flag offensive edit

answered 2010-05-31 22:20:53 +0800

lim gravatar image lim
72 2

i've do like your instruction.
when CacheableThemeProvider executed ?

i am still not found a clue to use CacheableThemeProvider..and change the font size
(the CacheableThemeProvider is use to store and load from cookies, isnt it? but i'm still alot of confuse)
please help me and guide me more...

link publish delete flag offensive edit

answered 2010-05-27 01:54:40 +0800

samchuang gravatar image samchuang
4084 4

Hi

1.
look at the zk.xml in zk demo, it define a theme provider, so, you could define your own theme provide

	<desktop-config>
	  <theme-provider-class>org.zkoss.zkdemo.userguide.CacheableThemeProvider</theme-provider-class>
	</desktop-config>

2.
look at the CacheableThemeProvider.java in the zk demo, you could learn how to set fontsize by theme provider


you could also refer to Theme Provider

link publish delete flag offensive edit

answered 2010-05-27 01:19:47 +0800

lim gravatar image lim
72 2

updated 2010-05-27 01:42:52 +0800

please guide me step by step, because i'm a newbie.
how you do it like zkdemo, to change the font size to the whole component of the project.

i have the sourcecode of zkdemo but i am not understand how to do it(confusing)

link publish delete flag offensive edit

answered 2010-05-26 21:01:07 +0800

samchuang gravatar image samchuang
4084 4

updated 2010-05-26 21:02:17 +0800

Hi

you could refer to style guide to set CSS style

from my testing, I use zk demo, and click the "A" label on the right to change the font-size, it could work, you could look at it's CSS to modify your Style

the font-size on zk demo has 3 font-size, all of them are working on datebox

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-05-24 22:55:37 +0800

Seen: 1,043 times

Last updated: Sep 22 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More