Skip to content

Commit

Permalink
assign unique-id to the RStudio Logo anchor
Browse files Browse the repository at this point in the history
- addresses a TODO in the Selenium automation
  • Loading branch information
gtritchie committed Jan 22, 2020
1 parent dc32516 commit 12a6eb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gwt/src/org/rstudio/core/client/ElementIds.java
Expand Up @@ -111,6 +111,7 @@ public static String idFromLabel(String label)

// global list of specific IDs we assign -- we keep this list centralized in this class as a
// so that we can be sure an ID is not used elsewhere in the product
public final static String RSTUDIO_LOGO = "rstudio_logo";
public final static String CONSOLE_INPUT = "console_input";
public final static String CONSOLE_OUTPUT = "console_output";
public final static String DEPLOY_CONTENT = "deploy_content";
Expand Down
Expand Up @@ -124,6 +124,7 @@ public void initialize(

// link target for logo
logoAnchor_ = new Anchor();
ElementIds.assignElementId(logoAnchor_, ElementIds.RSTUDIO_LOGO);
Style style = logoAnchor_.getElement().getStyle();
style.setPosition(Position.ABSOLUTE);
style.setLeft(18, Unit.PX);
Expand Down

0 comments on commit 12a6eb2

Please sign in to comment.