Yii Framework Forum: CJuiDatePicker size - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CJuiDatePicker size it looks twice the size of the original jquery datepicker Rate Topic: -----

#1 User is offline   adbie 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 12-November 09

Posted 05 September 2010 - 11:44 PM

I'm using the CJuiDatePicker, but the widget looks twice the size of the original datepicker from jQuery UI.

I believe it's due to the use of "em" in the css (instead of "px"), so the size of text, widths, line heights etc are all relative.

My question: Is there a quick way to define the size of the em just for the CJuiDatePicker?
0

#2 User is offline   adbie 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 12-November 09

Posted 06 September 2010 - 10:44 AM

Is there anyone who can help?

What I got with the CJuiDatePicker widget (using Redmond theme) is shown in the attached datepicker-big.png.

I would like it to look like datepicker-small.png, which is the original size shown in the jQuery UI datepicker demo. See:
http://jqueryui.com/...picker/#default

Any help much appreciated. Thanks.

Attached File(s)


0

#3 User is offline   adbie 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 12-November 09

Posted 06 September 2010 - 11:03 AM

Fixed it!

... by adding the following to my main.css:

#ui-datepicker-div {
font-size:8pt;
}


If anyone knows of a better hack, please let me know.
0

#4 User is offline   sumwai 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 16-March 09

Posted 06 September 2010 - 07:04 PM

This is what I did too.
tipstank.com - where I share my coding stuff
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users