if(me.columnNameSize)
rewrapCampaign(me.columnNameSize, me.rowsPerItem - 3, me.emptyLineHeight, me.realFontSize);
me.nItems = min(me.campaignIndex + 2, campaign_entries);
- me.scrollPos = me.nItems * me.itemHeight - 1;
me.setSelected(me, min(me.campaignIndex, me.nItems - 1));
+ // itemHeight will be initialized to the correct value at the first resizeNotify call
+ if(me.itemHeight == 1) // initial temporary value of itemHeight is 1
+ me.scrollPosTarget = 9999;
+ else
+ me.scrollPosTarget = me.nItems * me.itemHeight - 1;
if(me.labelTitle)
me.labelTitle.setText(me.labelTitle, campaign_title);
}
me.campaignBox.buttonNext = btnNext;
me.campaignBox.buttonPrev = btnPrev;
me.campaignBox.labelTitle = lblTitle;
- me.campaignBox.campaignGo(me.campaignBox, 0);
me.gotoRC(me, me.rows - 2, 0);
me.TD(me, 1, 2, e = makeXonoticTextLabel(0.5, _("Campaign Difficulty:")));