Ubuntu: Why does the Ubuntu SDK tell me, “do not use comma expression”, and what should I use instead?



Question:

So for example:

onCurrentlyExpandedChanged: flickable.DragOverBounds, flickable.contentHeight += itemHeight,console.log(itemHeight)  

The commas will have a yellow underline, and the tooltip will tell me to not use comma expressions. What expression should I use instead? What expressions can I use?


Solution:1

Use this instead:

onCurrentlyExpandedChanged: {       flickable.DragOverBounds      flickable.contentHeight += itemHeight      console.log(itemHeight)  }  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »