ios - How to adjust button width based on screen width in Quartz Designer for iPhone -


is there possibility adjust button width based on screen width in origami iphone, expression;

for example: button.width = screen.width-50

i can't add current design image question due low reputation

i tried solve on own below;

add following patches patch library

  • button patch
  • rendering destination dimensions patch
  • math patch

then,

  • link pixels wide on rendering destination dimensions first parameter on math patch
  • modify second parameter on math patch required value (for example: 50)
  • select - (minus) operator on math patch
  • link output of math patch width on button patch

Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -