Comments (6)
Give me a bit too think on this
from mysforms.
So you want cell to change as they are typing or just on form load?
from mysforms.
If people enter multiple lines in a textview cell, It would be nice to have the cell grow while typing with the number of lines in the textview. So the complete entered text is visible without having to scroll. I am trying to let autolayout do it's work but haven't figured it out yet...
from mysforms.
I am getting closer to dynamic cell heights by removing
- (CGSize)collectionView:(UICollectionView *)collectionView
layout:(UICollectionViewLayout *)collectionViewLayout
sizeForItemAtIndexPath:(NSIndexPath *)indexPath
from MYSFormViewController and use preferredLayoutAttributesFittingAttributes in my cell classes...
from mysforms.
Well, i wanted to take a look first, but i think the way i would go about it is by overriding the class method on the cell called sizeForCellWithElement or something like that. But im not sure if you would have to reload the page or what…
i didnt know collection view cells were self sizing as well, i thought only table views in ios 8 did that. If so, once i decide to drop support for ios <8 then ill definitely do it that way.
The reason i based the forms on collection views was so that people could customize the layout of the form, so sublassing collectionviewflowlayout may be most "correct" way to solve this problem. But if youve got the project forked and are changing stuff up to make it work for you, have at it!
- Adam Kirk
On Tue, Jan 20, 2015 at 11:52 PM, tychop [email protected] wrote:
I am getting closer to dynamic cell heights by removing
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPathfrom MYSFormViewController and use preferredLayoutAttributesFittingAttributes in my cell classes...
Reply to this email directly or view it on GitHub:
#5 (comment)
from mysforms.
Ok thanks. I'll see what I can do. If I have usefull addiditions to the framework, I'll let you know.
from mysforms.
Related Issues (10)
- Can't set custom cellClass HOT 3
- Feature request: Conditional cells HOT 4
- Feature request: Conditional sections HOT 1
- receive Notifications on Form updates? HOT 2
- Having normal pickerelement at the bottom (actionsheet) instead inline ? HOT 4
- Feature request - PickerView close/collapse on tap HOT 1
- Feature request - possibility to change PickerView inline height
- "Cannot assign to theme in self" error HOT 2
- Possibility to change "Placeholders" of MYSFormTextFieldElement? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mysforms.