Set the size in ems.
500421
def ems(self, value: float) -> 'Size':
        """"""
        raise_not_number(value)
        self.maximum = '{}em'.format(value)
        return self
1340468
def setPixmapSize( self, size ):
        
        self._pixmapSize = size
        self.setMinimumHeight(size.height())
        self.adjustMinimumWidth()
975494
void resize(int size, byte value)
    {
        if (size > _capacity)
        {
            resizeBuf(size);
        }
        while (_size < size)
        {
            _buf[_size++] = value;
        }
    }
1103261
public void setSize(I_CmsButton.Size size) {

        if (m_size != null) {
            removeStyleName(m_size.getCssClassName());
        }
        if (size != null) {
            addStyleName(size.getCssClassName());
        }
        m_size = size;
    }
1009007
def resize_bytes(self, size):
        
        Buffer.resize_bytes(self, size)
        self._size = size // self.itemsize
437184
private function set_modal_size() {

		if ( ! empty( $this->struct['width'] ) ) {
			$this->attributes['data-width'] = $this->struct['width'];
		}
		if ( ! empty( $this->struct['height'] ) ) {
			$this->attributes['data-height'] = $this->struct['height'];
		}

	}
166253
private void setSizeRatio(double size) {
        double width = widthHeightRatio * size;
        double height = size / widthHeightRatio;
        if (width <= size) {
            setSize(width, size);
        } else if (height <= size) {
            setSize(size, height);
        } else {
            setSize(size, size);
        }
    }
166512
public void setSize(DBIDRef id, int size) {
    if(csize == null) {
      csize = DataStoreUtil.makeIntegerStorage(ids, DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_TEMP, 1);
    }
    csize.putInt(id, size);
  }
204969
def tickSize(self, tickerId, field, size):
        """"""
        return _swigibpy.EWrapper_tickSize(self, tickerId, field, size)
997993
def resize(self, size):
        
        count = max(int(size), 0) - len(self)

        if count == 0:
            pass
        elif -count == len(self):
            self._value = bytes()
        elif count > 0:
            self._value += b'\x00' * count
        else:
            self._value = self._value[:count]
        size = len(self)
        self._bit_size = size * 8
        self._align_to_byte_size = size
658816
function updateSizeReading(size,unit,target) {
    var emSize, pxSize;

    if(unit==='em') { //If size value is in em units
      emSize = size;
      pxSize = Math.floor(size*$bodySize);
    } else { //If value is px or absent
      pxSize = size;
      emSize = size/$bodySize;
    }

    if (target === 'updatePxInput') {
      $sizePx.val(pxSize);
    } else if (target === 'updateEmInput') {
      $sizeEms.val(emSize.toFixed(2));
    } else {
      $sizeEms.val(emSize.toFixed(2));
      $sizePx.val(pxSize);
    }
  }
1240194
def ems(self, value: int) -> 'Gap':
        """"""
        raise_not_number(value)
        self.gap = '{}em'.format(value)
        return self
1274823
def resize(self, size):
        
        self.instance.resize_volume(size)
        self.size = size
81983
def set_size(self, size, surface_size):
        
        self.size = size
        self.position = (0, surface_size[1] - self.size[1])
        y = self.position[1] + self.padding
        max_length = self.max_length
        for row in self.rows:
            r = len(row)
            width = (r * self.key_size) + ((r + 1) * self.padding)
            x = (surface_size[0] - width) / 2
            if row.space is not None:
                x -= ((row.space.length - 1) * self.key_size) / 2
            row.set_size((x, y), self.key_size, self.padding)
            y += self.padding + self.key_size
1230476
def set_size(self, size):
        
        raise NotImplementedError("%s not implemented for %s" % (self.set_size.__func__.__name__,
                                                                 self.__class__.__name__))
1184235
def _update_length(self):
        
        payload = type(self).oxm_value.pack(self.oxm_value)
        self.oxm_length = len(payload)
886108
def _fixSize(self):
        """"""
        self.height = 0
        for o in self.options:
            text = o['label']
            font = o['font']
            ren = font.render(text, 1, (0, 0, 0))
            if ren.get_width() > self.width:
                self.width = ren.get_width()
            self.height += font.get_height()