Permlink Replies: 1 - Pages: 1 - Last Post: 19 Jun 16, 18:08 Last Post By: davidekholm Threads: [ Previous | Next ]
Dschuwi

Posts: 296
Registered: 12-Nov-2003
currentRows variable code
Posted: 19 Jun 16, 11:15
  Click to reply to this thread Reply
David,

I need the code to calculate the value of currentRows variable - if you have it handy I would appreciate if you could share it ... I am too lazy to re-invent it ... :D
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: currentRows variable code
Posted: 19 Jun 16, 18:06   in response to: Dschuwi in response to: Dschuwi
  Click to reply to this thread Reply
Here it is:
this.indexImageCount = Math.min(imagesPerIndex,
visibleObjects.length - (indexNum * imagesPerIndex));
this.currentRows = (int) Math.ceil((double) indexImageCount / cols);
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums