tabris-js icon indicating copy to clipboard operation
tabris-js copied to clipboard

Native client crashes when referencing widget excluded from layout

Open cpetrov opened this issue 3 years ago • 0 comments

Problem description

When referencing a widget excluded from the layout, the native iOS client crashes.

Expected behavior

When an edge references a widget that is excluded from layout, it should fall back to 0, similarly to what happens when the referenced widget is not appended to the widget tree at all.

Environment

  • Tabris.js version: 3.8, nightly
  • OS: iOS

Code snippet

import {Composite, contentView} from 'tabris';

contentView.append(
  <$>
    <Composite left top right='#box' height={50} background='red' />
    <Composite id='box' right top height={50} width={50} background='blue' excludeFromLayout />
  </$>
);

cpetrov avatar Jun 17 '22 10:06 cpetrov