View unanswered posts | View active topics It is currently Sun May 28, 2017 9:31 pm



This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
 Too many categories crowded together 
Author Message

Joined: Tue Jul 27, 2010 3:59 am
Posts: 7
Post Too many categories crowded together
I have many category sub rows horizontally, and time span is vertically. The view is a day. The more categories I add, the more crowded they are together, and the smaller they appear horizontally. Can the calendar create a horizontal scroll bar so the categories are not squeezed together? I'm using JavaBeans to create the calendar.


Tue Jul 27, 2010 4:09 am
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: Too many categories crowded together
Hello,

Please submit a support ticket. And we probably need a screen shot as well.

Thanks,


Tue Jul 27, 2010 11:05 am
Profile WWW

Joined: Tue Jul 27, 2010 3:59 am
Posts: 7
Post Re: Too many categories crowded together
Hi,

I tried to register to open a ticket, but I don't get the confirmation email. I tried twice with 2 different emails with no luck.


Tue Jul 27, 2010 5:42 pm
Profile
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: Too many categories crowded together
OK, I'll see what's wrong. We have had problems with the mail proxy at the support site.

Stay tuned.

Thanks,


Tue Jul 27, 2010 5:44 pm
Profile WWW
Site Admin

Joined: Mon Dec 06, 2004 4:24 pm
Posts: 2485
Location: Sweden
Post Re: Too many categories crowded together
Try now.


Tue Jul 27, 2010 5:59 pm
Profile WWW

Joined: Tue Jul 27, 2010 3:59 am
Posts: 7
Post Re: Too many categories crowded together
Hi, I entered a ticket but I don't think we have a support contract. I did not get any response the ticket. I'm under a deadline and just need to know if there is a simple way to set the minimum width of category subrows. I'm attaching a screen shot that shows 4 categories for each day squeezed together. I need a horizontal scroll bar.


Attachments:
ScreenShot001.jpg
ScreenShot001.jpg [ 84.34 KiB | Viewed 11319 times ]
Fri Jul 30, 2010 3:40 pm
Profile

Joined: Tue Jul 27, 2010 3:59 am
Posts: 7
Post Re: Too many categories crowded together
I figured it out. Just in case someone runs into the problem here's the solution:

/*
* this code resizes the category subrows so they are not squeezed together
*
*/
int numEntities = calendars.size(); //get number of practitioners, mig calles these subrows catagories
int width = dayDateArea.getDateArea().getWidth();
float f = width/numEntities;

//try make entities fit in window, but minimum size is 200 px
if(f < 200)
f = 200;

af = new AtFixed(f);
dayDateArea.getDateArea().setGridLayoutProvider(new CalendarScreenLayoutProvider()); //*lstemp
.
.
.
private class CalendarScreenLayoutProvider implements GridLayoutProvider {

public GridDimensionLayout createLayout(Grid grid, int dimIx) {

GridRowLayout subGridRowLayout = new DefaultGridRowLayout(true, af, af, af);

AtFixed min = dimIx == Grid.PRIMARY_DIMENSION ? new AtFixed(20.0f) : null;
AtFixed pref = dimIx == Grid.PRIMARY_DIMENSION ? new AtFixed(20.0f) : null;
GridSegment gs = new GridSegment(grid.getCellCount(dimIx), min, pref, null);

return new DefaultGridDimensionLayout(dimIx, new GridSegmentSpec(gs), subGridRowLayout, false);
}
}


Mon Aug 02, 2010 3:40 pm
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 7 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.