Skip to content

Commit

Permalink
place_line for button
Browse files Browse the repository at this point in the history
  • Loading branch information
fasihrana committed Nov 8, 2018
1 parent 6d07a3d commit 8c7f2c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/elements/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ impl Element for Button {
//text_align,
font_store);

let mut _x = (extent.w - calc_w) / 2.0;
let mut _y = (extent.h - calc_h) / 2.0;
let mut _x = (self.bounds.w - calc_w) / 2.0;
let mut _y = (self.bounds.h - calc_h) / 2.0;

calc_w = match width {
properties::Unit::Extent => extent.w,
Expand Down

0 comments on commit 8c7f2c3

Please sign in to comment.