diff options
| author | jacob1 <jfu614@gmail.com> | 2012-12-14 18:34:00 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2012-12-14 18:34:00 (GMT) |
| commit | 05fc39e40faa817cdbf3e50de94d28a5ef9349dc (patch) | |
| tree | 449557cc23018e9b0257786fd4ccab75ca94e5d1 /src/preview/PreviewView.cpp | |
| parent | 002743ef085b21789e02505c30d5186c043d92b5 (diff) | |
| download | powder-05fc39e40faa817cdbf3e50de94d28a5ef9349dc.zip powder-05fc39e40faa817cdbf3e50de94d28a5ef9349dc.tar.gz | |
a working scrollbar in the save preview. Also, fix the bug where you couldn't go back up a page when there weren't enough comments to fill a page
Diffstat (limited to 'src/preview/PreviewView.cpp')
| -rw-r--r-- | src/preview/PreviewView.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/preview/PreviewView.cpp b/src/preview/PreviewView.cpp index 445142a..d6c4448 100644 --- a/src/preview/PreviewView.cpp +++ b/src/preview/PreviewView.cpp @@ -53,7 +53,7 @@ public: }; PreviewView::PreviewView(): - ui::Window(ui::Point(-1, -1), ui::Point((XRES/2)+200, (YRES/2)+150)), + ui::Window(ui::Point(-1, -1), ui::Point((XRES/2)+210, (YRES/2)+150)), savePreview(NULL), doOpen(false), addCommentBox(NULL), @@ -514,7 +514,7 @@ void PreviewView::NotifyCommentsChanged(PreviewModel * sender) for(int i = 0; i < comments.size(); i++) { int usernameY = currentY+5, commentY; - tempUsername = new ui::Label(ui::Point(5, currentY+5), ui::Point(Size.X-((XRES/2) + 10), 16), comments[i].authorName); + tempUsername = new ui::Label(ui::Point(5, currentY+5), ui::Point(Size.X-((XRES/2) + 13), 16), comments[i].authorName); tempUsername->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; tempUsername->Appearance.VerticalAlign = ui::Appearance::AlignBottom; currentY += 16; @@ -524,7 +524,7 @@ void PreviewView::NotifyCommentsChanged(PreviewModel * sender) commentY = currentY+5; - tempComment = new ui::Label(ui::Point(5, currentY+5), ui::Point(Size.X-((XRES/2) + 10), -1), comments[i].comment); + tempComment = new ui::Label(ui::Point(5, currentY+5), ui::Point(Size.X-((XRES/2) + 13), -1), comments[i].comment); tempComment->SetMultiline(true); tempComment->Appearance.HorizontalAlign = ui::Appearance::AlignLeft; tempComment->Appearance.VerticalAlign = ui::Appearance::AlignTop; |
