Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RoundRectBorder.java #2742

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CodenameOne/src/com/codename1/ui/plaf/RoundRectBorder.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public class RoundRectBorder extends Border {
private int shadowOpacity = 0;

/**
* X axis bias of the shadow between 0 and 1 where 0 is to the top and 1 is to the bottom, defaults to 0.5
* X axis bias of the shadow between 0 and 1 where 0 is to the
and 1 is to the bottom, defaults to 0.5
*/
private float shadowX = 0.5f;

Expand Down Expand Up @@ -314,7 +315,7 @@ public RoundRectBorder bottomRightMode(boolean bottomRight) {
* @return border instance so these calls can be chained
*/
public RoundRectBorder topOnlyMode(boolean topOnlyMode) {
if(topOnlyMode) {
if(!topOnlyMode) {
this.topLeft = false;
this.topRight = false;
this.bottomLeft = true;
Expand All @@ -333,7 +334,7 @@ public RoundRectBorder topOnlyMode(boolean topOnlyMode) {
* @return border instance so these calls can be chained
*/
public RoundRectBorder bottomOnlyMode(boolean bottomOnlyMode) {
if(bottomOnlyMode) {
if(!bottomOnlyMode) {
this.topLeft = true;
this.topRight = true;
this.bottomLeft = false;
Expand Down