How do I move a window's contents?

I'm using XS' popup item script  for Ace and I've deactivated a few of the features that added additional rows and lowered the window's height as per the script instructions but now I've got this problem:


shortwindow.png
There looks like there's enough space that if I just shifted the contents up a few pixels I wouldn't have to make the window any bigger. My ruby knowledge is fairly rudimentary (and is mostly focused in RGSS2), but is there a way to do this?
Well, reading it without any highlight is really hugly, but if I am not wrong your problem seems to be with this line:


@pop_window.draw_text_ex_no_reset(2, 34, item.description) unless item.nil?


it starts writing your text giving y=34. That's why, since you reduced your window size, your text is being cut.


Change that line to this:


@pop_window.draw_text_ex_no_reset(2, 0, item.description) unless item.nil?


it should solve your problem.


I hope this helps.
Well, reading it without any highlight is really hugly, but if I am not wrong your problem seems to be with this line:



@pop_window.draw_text_ex_no_reset(2, 34, item.description) unless item.nil?


it starts writing your text giving y=34. That's why, since you reduced your window size, your text is being cut.


Change that line to this:



@pop_window.draw_text_ex_no_reset(2, 0, item.description) unless item.nil?


it should solve your problem.


I hope this helps.



I wasn't using the descriptions  but it did give me a good enough idea of the script's syntax that I could figure it out from there. I had to change the positioning for the icon, item names, and amounts as well.


Thanks! That's one problem solved.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-move-a-windows-contents.69770/