Android: why is there no maxHeight for a View?

View's have a minHeight but somehow are lacking a maxHeight: What I'm trying to achieve is having some items (views) filling up a ScrollView. When there are 1..3 items I want to display them...

Display image in Qt to fit label size

I already tried several methods on displaying an image on a form, but none of them works how I would like. I've read many places that the easiest way is to create a label and use that to display...

fitting text into the box

on my website i allow users to create pictures with line of text they specify drawn on the picture currently i use for that imagemagick convert - i specify svg template and let convert do the...

How do I set the first UIViewController's view to autoresize?

I have a UIViewController subclass to handle my view for a landscape only application. I'd like for its view to resize to reflect the landscape dimensions automatically, but it doesn't seem to. A...

How to create a self resizing grid of buttons in tkinter?

I am trying to create a grid of buttons(in order to achieve the clickable cell effect) with Tkinter. My main problem is that I cannot make the grid and the buttons autoresize and fit the parent...

Scale image to fit a bounding box

Is there a css-only solution to scale an image into a bounding box (keeping aspect-ratio)? This works if the image is bigger than the container: img { max-width: 100%; max-height:...

setFrame on subviews of tableViewHeader not working

I have a tableViewHeader UIView that contains a few dynamic elements (UILabels with varying sizes to be exact). I set the UIView up in IB, have everything connected up, and am trying to change...

How to resize Title in a navigation bar dynamically

I have some views that show up in a navigation controller. Two of these views have a longer title for the navigation bar. The problem is that when the title is too long to fit, some characters are...

Auto resizing the SELECT element according to selected OPTION's width

I've got this select element with different option in it. Normally the select element would get its width from the biggest option element, but I want the select element to have the default option...

NSAttributed string in multiple lines in a UILabel

I have a UILabel inside a cell which contains several elements. I need the label to have attributed string which can fill the label's height, i.e. go into multiple lines if neccessary. I managed...

Why UITextField becomeFirstResponder returns NO?

This is my code: while (true) { if ([identificationField becomeFirstResponder]) { NSLog(@"finally!"); break; } else{ if ([identificationField...

How to get tkinter canvas to dynamically resize to window width?

I need to get a canvas in tkinter to set its width to the width of the window, and then dynamically re-size the canvas when the user makes the window smaller/bigger. Is there any way of doing this...

Change UITabBar height

I use UITabBarController as a root view and app supports iOS 6 and above. Project class hierarchy is as below. UITabBarController - tab1 - UINavigationController - UIViewController ...

why do i get "Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES" in xcode 6 beta

I have the following code in a swift UITableViewController, but i get a "Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES exception at the 2nd line. I didnt...

Assertion failure in UIPageViewController

While switching between Tabs too fast in UIPageViewController, App getting crash in line [UIPageViewController...

UITableViewCellContentView width is always zero according to the autoresizing mask (only on iOS 7)

I'm using the Auto Layout approach of dynamic cell height as described in Using Auto Layout in UITableView for dynamic cell layouts & variable row heights. This works so far. Now I'm presenting my...

the behavior of the UICollectionViewFlowLayout is not defined, because the cell width is greater than collectionView width

2015-08-18 16:07:51.523 Example[16070:269647] the behavior of the UICollectionViewFlowLayout is not defined because: 2015-08-18 16:07:51.523 Example[16070:269647] the item width must be less...

Resize column width to fit into the QTableWidget pyqt

I've googled around but I'm not able to find a solution to my problem. I have a QTableWidget with 2 columns and what I'm trying to do is to make them visible to the whole widget without the...

How to show a screen through code on Swift (Xcode)?

I'm new to Xcode and I'm trying to build an app for iOS. The app must have several screens (View Controller), but I'm having a trouble when I try to show the second one from the first one. I want...

How I can show Timeline year wise in Vis.js timeline?

I'm using Vis.js timeline first time I want timeline year wise instead of combined year timeline. I tried groups options in Vis.js Instead of items but didn't work. After page refresh i'm getting...

Not showing the nearby cast DeviceSelection screen in iOS

In my app when I tap on the cast button I only able to see the nearby device option. On clicking the nearby device selection options a screen with all the nearby cast devices should appear. In my...

How to change AppBar height dynamically during runtime based on the AppBar content in Flutter?

I'm trying to implement a flutter_tagging inside the AppBar. I managed to add the tagged TextField inside the AppBar and to resize the AppBar using PreferredSize widget using the following...

PixiJS only draws a certain amount of rectangles?

I want to draw a grid dynamically (based on the user defined size) with Pixi.js. My code is pretty straightforward: let app, graphics; const cellSize =...

Autoresize UICollectionView cells, Align cell to top

I've a UICollectionView, with multiple sections and rows. Header and Footer views wherever necessary, of fixed size. Cells that are autoresizable The cell view are designed like : Green colour -...

"autoResizeDimensions" request for Google Sheets API doesn't work properly

I have a script that performs some processing and outputs in google spreadsheets. After uploading data to the worksheet, I need to make columns resized to fit content automatically. As I...

Pixi.js Application will not completely fill the screen

I am developing a game using pixi.js and have been unable to make the application fill the entire screen. I saw this tutorial and added the resize method to my code, but when it is called it...

vue-echarts theme does not update

I'm developing an app and I have a file where I list all echarts components, tools and themes I'd like to use in my vue project, like so : import Vue from 'vue'; import Echarts from...

Ant Media - Can't play WebRTC stream in iOS App

I'm using Ant Media CE version of the server with SSL enabled. Stream plays fine on web browser but doesn't play in iOS app. I see no error in debugger. I've tried their iOS app and also my code...

Trying to use pdf-lib to fill pdf form fields. Trouble Flattening and Saving Form

I'm looking into using the pdf-lib library form manipulating pdf forms. The package is located here: https://github.com/Hopding/pdf-lib Edited the question yet again (it has been here for months...

Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES Xcode 13

I have updated my project to Xcode 13 and iOS 15. Now the app is crashing with an error related to autoresizing masks in UITableViewCells. I have tried to change UITableViewCells Layer property in...