I have problem implementing the following code:
var newNamedStyle=_workbook.Styles.CreateNamedStyle("testStyle");
newNamedStyle.Style.HorizontalAlignment=ExcelHorizontalAlignment.Center;
newNamedStyle.Style.Font.Size=15;
but EPPlus doesn't seem to be able to capture the Horizontal Alignment properly.
Could this be a bug with EPPlus?
Any work around for that?
I was able to horizontally center a cell with EPPlus (3.1.3) like this.
xlWorkSheet.Cells["A1"].Style.HorizontalAlignment = OfficeOpenXml.Style.ExcelHorizontalAlignment.Center;
Related
I have this JSFiddle, where I can draw annotations and drag them around.
But, in case I draw a segment or arrow-segment and in case I try to drag them to the most left edge of the chart, they are changing it's position and are aligning vertically and parallelly to the left edge. The demo can be seen in this video.
I tested and concluded that the issue has nothing to do with the plugins which I am having in the code I posted. So I wonder if this is a highcharts bug or if this behavior can be fixed within the onDrag event?
H.wrap(H.Annotation.prototype, 'onDrag', function(proceed) {
var annotation = this;
proceed.apply(this, Array.prototype.slice.call(arguments, 1));
//do something here?
});
It looks like a bug, I reported it on the Highcharts Github issue channel where you can follow this thread: https://github.com/highcharts/highcharts/issues/14944
Setting ordinal=false resolves the issue: https://jsfiddle.net/BlackLabel/cnosa15L/1/
I am trying to implement swipe actions on ListView for each element. Whole view is AbsoluteLayout, with two GridLayouts: one acting as "foreground"(list element) and other as "background" (swipe actions). I want them both to have equal height of "foreground" (which is dynamic and differs for every list element).
I succesfully implemented this on Android - I call a method on layoutChanged event
onLayoutChanged(args: EventData) {
const foregroundNotificationTemplate = (<AbsoluteLayout>(args.object)).getChildAt(1);
const backgroundButtons = (<AbsoluteLayout>args.object).getChildAt(0);
backgroundButtons.height = foregroundNotificationTemplate.getActualSize().height;
}
This unfortunatelly is not working on iOS. I tried to access Frame and UiView, but with no success - it has height of background content.
Demo presenting the problem on Nativescript Playground:
https://play.nativescript.org/?template=play-ng&id=4LRwDC
You don't necessarily have to use AbsoluteLayout as you are animating the position with translate which is possible with any layout. So using GridLayout instead of AbsoluteLayout should solve your problem on both platforms and you may also get rid layoutChanged event for measuring height.
Also note that your ListView item template can not be dynamic, you should not use ngIf or anything that would alter the structure of the list item, use multiple templates instead.
For anyone looking for working solution, thats what Manoj proposed: https://play.nativescript.org/?template=play-ng&id=yXggcv
I am developing a Swift 4 application and am using the Charts 3.0.4 cocoapod. I managed to draw a BarChart but now I want to put the values of each bar within the bar itself. I find how to change the font of the values by using the .setValueFont method of the BarCharDataSet but I am not able to find how to change their positions.
Please take a look at the images for better understanding!
Thanks in advance!
Currently:
Goal:
Add this line:
chart.drawValueAboveBarEnabled = false
I want to align the items in the QListView centered like on this image:
Currently I manage to aligenn them only left:
In the property inpector of QtCreateor I have found nothing related to alignment. Also the style-sheet documentation for QListView tells nothing about the alignment.
Is this only to acheive using custom delegates?
I think you will have to subclass the QStyledItemDelegate object which is responsible to customize the rendering of your items.
Here is a link to the doc.
There are also some samples availaible on the Qt website:
Star Delegate
I comming back if I find a solution: I need the same effect as yours.
I'm facing an issue in scrolling datatable.
If scrolling is disabled, the datatable looks like :
But when scrolling is enabled, the columns get distorted & look like:
Infact the text size also changes.
Any workarounds ? I did have a look on http://code.google.com/p/primefaces/issues/detail?id=3361#makechanges . But is there any other workaround ?
Regards,
Shikha
As per the comments above, it is not supported currently.
BR,
Shikha