fix size of both columns in <af:selectManyShuttle> - oracle-adf

How do we fix size of each of the columns of . Currently it auto-stretches depending upon the highest length of the data in all the rows. If there is no data, both columns get very small in size

Use contentStyle property and set desired width using px.
However, be aware that because of browser CSS precedence rules, CSS rendered on a DOM element takes precedence over external stylesheets like the skin file. Therefore skins will not be able to override what you set on this attribute.
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_selectManyShuttle.html

Related

Looking for guidance on how to add custom class to sections and modules in Squarespace?

I have a client who is using Squarespace and asked that I fix a mobile stacking issue.
I have 2 rows that have image + text alternating side by side. This looks fine on desktop, but the on mobile the stacking order is wrong.
Desktop Stacking:
Image + Text
Text + Image
Current Mobile Stacking:
Image 
Text
Text
Image
Ideal Stacking:
Image
Text
Image
Text
Typically I was accomplish this by alternating the sections with a custom class, but I'm not seeing any place to add this. Are you able to add custom classes to sections?
Any help is appreciated. Thanks!
It is not possible to directly edit the markup that appears within Squarepace's default grid and block system (they call it, "LayoutEngine"). Generally speaking, one must either write their own HTML within a Code Block (or via Code Injection points), or use JavaScript to alter the HTML after the default markup is loaded onto the page.
But in your case specifically, this is a common problem in Squarespace, and it is usually solved with just CSS, using a combination of:
first-child, last-child and nth-child selectors, and/or
the > direct-descendant/child-combinator, and/or
specific block IDs (each sqs-block has a unique id attribute), and/or
a media query so that the rules only take affect after your mobile breakpoint is reached, and/or
either display:flex with the order property. or display:table-header with display:table-footer in order to force a different stacking order.
The specific CSS often varies greatly based on the specific circumstance, whether you're trying to reorder blocks, columns, or rows. The similar question linked to above provides a specific solution to the same problem you are trying to solve, but the code that solves it in your case may look quite different, though it will likely use a combination of the five things mentioned above.
Or, you can use JavaScript to target the blocks and add your own classes, then write the CSS with those classes. Even in that case, the general approach is the same.

ui-grid column alignment is disturbed when I set the minWidth

I am dynamically loading data into my ui-grid, so I do not know the number of columns beforehand. My ui-grid is working properly as long as I do not set the minWidth of the column, but as soon as I set the minWidth, the alignment is disturbed. Data from the rows above is being displayed on the rows below. But when I scroll to the right, the data automatically aligns itself.
I have attached images as this is kind of confusing. I have searched a lot, but could not get an answer anywhere.
I'm not sure which version of ui-grid you are using (your styling looks different).
If you are on the current version, you should be able to use the auto-resize option http://ui-grid.info/docs/#/tutorial/213_auto_resizing which will resize the grid when data is first loaded. It will also resize when you resize the browser.

Why are panelGridLayouts overlapping?

I am building a form which contains two forms adjacent to each other. Hence I used PanelGridLayout and placed two panelFormLayout in each 50% width gridCell of first gridRow of a PanelGridLayout. This works perfect with respect to alignment but in a smaller resolution both the gridcell's are overlapping and the fields of left form are overlapping with the labels of the right form.
How can I resolve this issue?
Any ideas on which layouts I can use?
What would you expect it to do in such a case where there is basically not enough space to show the fields in one of the sides?
ADF won't automatically shrink or eliminate fields in such a case.
Acc to the Geometry Management of <af:gridCell>
Beware that if you attempt to use width="auto", halign="center", halign="end" in conjunction with cell content that uses unstable, percentage-based widths, you may experience different results in different browsers. If you wish to use these settings, be sure to constraint the width of that cell content.
Possible Workaround
instead of halign="end" change it to halign="stretch"
source : https://docs.oracle.com/cd/E35521_01/apirefs.111230/e17491/tagdoc/af_gridCell.html

How can i style date that dynamicaly reading from database?

dynamical reading date from database in codeigniter like given below
<?php echo format_date($row['date'], 'd M')?>
and the result will disply like 27 Jul
I want to style it to like this image http://line25.com/wp-content/uploads/2012/date-icon/16.jpg
How can i style like this image please help..
I’m afraid it can’t be done with CSS alone. The main problem is that the components of the date do not appear as elements in the markup, so you cannot style them differently from each other, except to a limited degree. By setting a width that forces them to different lines, you get the opportunity to use :first-line. But the possibilities of styling that pseudoelement are rather limited, by the specs and in practice.
So you would need to modify the generating code to produce something like
<span class=date><span class=day>27</span><span class=month>Jul</span></span>
Then you can e.g. style such an element as an inline block and the inner span elements as blocks and set background and content colors, font properties, and rounded border for the outer element.

Dynamically size images in SQL Server Reporting Services

My goal is to have a list of items each item has an image beside it whose size is proportional to some number from a dataset. For example, a list of countries which includes an image of a person whose size is proportional to the population.
How can I dynamically specify the size of an image based on data from the dataset?
Two approaches which don't seem to work:
(1) specify an expression for the image size (that doesn't seem to fit).
(2) tell the image to fit container and set the size of the container to an expression.
I don't want to resort to storing 100 images of varying sizes.
Are there any better solutions?
The trick is to use the "Padding" values of a cell or an image. These can be set with an expression, and will be the white space around your image.
For example, set right padding to
=RowNumber("DataSet").ToString() &"pt"
and you will get an image that gets smaller on each row.
Hope this helps...

Resources