Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 days ago.
Improve this question
I am trying to print a div content with scrollable table. I used ngx-print ver 1.2.1. When I use [useExistingCss] property the scrollable content is not printing, and when I remove that property scroll works properly. Also I tried using styleSheetFile for adding the css files, but styles are not being copied. Not sure what I am doing wrong.. :(
Related
I'm trying to add custom content type to existing page builder module in Magento 2 following https://devdocs.magento.com/page-builder/docs/create-custom-content-type/overview.html
Bit of a problem that docs is kind of outdated, but the biggest issue for me right now, is that for some reason, panel with settings of content type is not loading. Console doesn't throw any errors and I'm not even sure how to debug this.
Normal behavior: https://drive.google.com/open?id=1OClPda-WGuc7idNogUnTz0wi4ZSk_Qu_
Behavior of custom content type (settings are not loading at all): https://drive.google.com/open?id=1I-IeTImec-M8DuLfgjiA193mhm0Fwtd8
Maybe someone already stumbled upon issue like this and know possible ways to solve it?
Ok I've found out what problem was, so I'm answering this question in case someone will need this in future.
Check your ui_component xml structure, I was having an issue with naming there (namespace was not correct), and that's why it was not loading.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
Anyone has met this error can help me. I don't understand why my program happen this error
Error message is straight forward. If you can't change it manually, You can use CodeMod (https://github.com/sibelius/codemod-RN24-to-RN25)
If all your imports are correct, then check third party modules. If you are in older version, Update the third party modules.
The error is very descriptive - you're importing React from the react-native package, which has been incorrect since version 0.25.
Instead of:
import React, { Component, View, Text } from 'react-native'
You should have:
import React, { Component } from 'react'
import { View, Text } from 'react-native'
Search your codebase for that style of import, it may be that you're using a 3rd-party module which is using the old style.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 8 years ago.
Improve this question
As you'll see from the code in the xcode project file there's a compile error at build time.
I'm trying to apply names for the indivudal image using the following code:
labelArray =[[NSArray alloc] initWithObjects:#"one", #"two", #"three", #"four", nil];
cell.label.text = [_labelArray objectAtIndex:indexPath.row];
This is using apples sample code for collection view but the principals are the same for my project.
Here's a drop box link for the compile error issue using an NSArray with a uilabel..
The error is:
Interface storyboard compile error.
Any thoughts on this would be great.
Cheers
I don't kwow about your storyboard issue (it is impossible to say anything without seeing the storyboard, or, at least, how the outlet is bound), but there is another issue.
It seems like labelArray is an array of UILabel. But in the first line of your code, you are creating an array of NSString.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
I am porting a chrome/opera extension to safari. It shows a popover with some data relative to the page. So it needs to communicate with the injected script. I figured out how to communicate between the injected script and background page and popover and background page. But the popover's event listener is not triggered, the popover sends message to injected script and the return message is not received. Maybe I set it for the wrong window object? Or there is a bug in Safari's popover implementation?
Thank you.
Here is the code.
In the popover:
safari.self.addEventListener("message", (function(theMessageEvent){
safari.extension.globalPage.contentWindow.console.log("popover message");
//this is the listener that is not called
}));
safari.application.activeBrowserWindow.activeTab.page.dispatchMessage("get");
//this works and sends message to injected script
in the injected script:
safari.self.addEventListener("message", (function(theMessageEvent){
if(theMessageEvent.name=="get"){
theMessageEvent.target.tab.dispatchMessage("setpopover");
//this sends the message back, maybe the target.tab should be changed to something else?
}
}
EDIT:
I found one solution: the popover send message to the injected script, the injected script sends reply to the background page, and the background page directly calls functions from script in the popover using safari.extension.popovers[0].contentWindow.somefunction();
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I am getting the following error while compiling my Latex File :
! LaTeX Error: Cannot determine size of graphic in tree.jpg (no BoundingBox).
Why do I get this error ? What has this to do with an .eps file ?
In fact, I could compile it fine with MacTex on my machine. But when I submit it online to a scientific journal for publication, it compiles it on the server and sends me the resultant PDF which has all these errors that prevent it from compiling.
I am using the following syntax for including the images :
\begin{figure}[!h]
\begin{center}
\scalebox{0.45}{
\includegraphics{tree.jpg}}
\end{center}
\caption{\small A sample}
\label{tree}
\end{figure}
What should I do ? Could it be that their server is using an old compiler ?
UPDATE : It finally worked. I converted the first image to PDF and the compilation happened perfectly. I guess it used the bounding box value from that PDF and applied it to all images.
To include png and jpg, you need to specify the Bounding Box explicitly.
\includegraphics[bb=0 0 1280 960]{images/some_image.png}
Where 1280 and 960 are respectively width and height.
I've had the same problems including jpegs in LaTeX. The engine isn't really built to gather all the necessary size and scale information from JPGs. It is often better to take the JPEG and convert it into a PDF (on a mac) or EPS (on a PC). GraphicsConvertor on a mac will do that for you easily. Whereas a PDF includes DPI and size, a JPEG has only a size in terms of pixels.
( I know this is not the answer you wanted, but it's probably better to give them EPS/PDF that they can use than to worry about what happens when they try to scale your JPG).
Using .jpg files do not forget about compiling directly to .pdf (pdflatex) and use:
graphicx package with pdftex option (\usepackage[pdftex]{graphicx}).
If you have Gimp, I saw that exporting the image in .eps format would do the job.
I use MacTex, and my editor is TexShop. It probably has to do with what compiler you are using. When I use pdftex, the command:
\includegraphics[height=60mm, width=100mm]{number2.png}
works fine, but when I use "Tex and Ghostscript", I get the same error as you, about not being able to get the size information. Use pdftex.
Incidentally, you can change this in TexShop from the "Typeset" menu.
Hope this helps.
On a Mac (pdftex) I managed to include a png file simply with
\includegraphics[width=1.2\textwidth]{filename.png}
. But in order for that to work I had to comment out the following 2 packages:
%\usepackage[dvips]{epsfig}
%\usepackage[dvips]{graphicx}
...and simply use package graphicx:
\usepackage{graphicx}
It seems [dvips] is problematic when used with pdftex.
I had the same problem, caused by a clash between the graphicx package and an inclusion of the epsfig package that survived the ages...
Please check that there is no inclusion of epsfig, it is deprecated.