Skip to content

Can't apply styles to uipanel #9

Closed

Description

@davidn-IA

With Windows 10, Matlab 2017b, this fails:

p = uipanel(uifigure());
mlapptools.setStyle(p,'border-radius','10px');

Error as follows (apparently because the widgetID is coming back as null when executing the query string):

Error using matlab.internal.webwindow/executeJS (line 701)
Error executing JavaScript command: 
JavaScript error: Uncaught TypeError: Cannot read property 'style' of null at line 110 column 385 in https://localhost:31515/toolbox/matlab/uitools/uifigureappjs/release/dojo/dojo.js
Error in mlapptools.setStyle (line 245)
              win.executeJS(styleSetStr);
Error in Untitled (line 2)
mlapptools.setStyle(p,'border-radius','10px')

(EDIT by Dev-iL: code formatting.)

Activity

  1. Dev-iL commented on Jan 6, 2018

    @Dev-iL
    Member

    This seems to be working now:

    untitled

  2. self-assigned this
    on Jan 6, 2018
  3. sco1 commented on Jan 7, 2018

    @sco1
    Member

    Should be funcitonal with #8 (947c54e)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions